Skip to content

Commit efac13d

Browse files
authoredApr 18, 2017
Merge pull request #23 from rodrigopivi/patch-1
make url regexp case insensitive
2 parents 82b4536 + fad0ff6 commit efac13d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/ParsedText.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import ReactNative from 'react-native';
44
import TextExtraction from './lib/TextExtraction';
55

66
const PATTERNS = {
7-
url: /(https?:\/\/|www\.)[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)/,
7+
url: /(https?:\/\/|www\.)[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)/i,
88
phone: /[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}/,
99
email: /\S+@\S+\.\S+/,
1010
};

0 commit comments

Comments
 (0)
Please sign in to comment.