Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Tung Pun committed Sep 13, 2020
1 parent dae58bb commit fc5c09b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions linkfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 //
Expand All @@ -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
|
Expand All @@ -63,7 +63,7 @@
)
(?:"|') # End newline delimiter
(?:"|'|\ ) # End newline delimiter
"""

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
jsbeautifier
pytest

0 comments on commit fc5c09b

Please sign in to comment.