diff --git a/linkfinder.py b/linkfinder.py index a33f53f..8d0661b 100755 --- a/linkfinder.py +++ b/linkfinder.py @@ -28,7 +28,7 @@ # Regex used regex_str = r""" - (?:"|') # Start newline delimiter + (?:"|'|=) # Start newline delimiter ( ((?:[a-zA-Z]{1,10}://|//) # Match a scheme [a-Z]*1-10 or // @@ -38,8 +38,8 @@ | ((?:/|\.\./|\./) # Start with /,../,./ - [^"'><,;| *()(%%$^/\\\[\]] # Next character can't be... - [^"'><,;|()]{1,}) # Rest of the characters can't be + [^"'><,;|\ *()(%%$^/\\\[\]] # Next character can't be... + [^"'><,;|\ ()]{1,}) # Rest of the characters can't be | @@ -63,7 +63,7 @@ ) - (?:"|') # End newline delimiter + (?:"|'|\ ) # End newline delimiter """ diff --git a/requirements.txt b/requirements.txt index fb0d438..3e95d40 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ jsbeautifier +pytest \ No newline at end of file