Skip to content

Commit a8457ab

Browse files
authored
Merge pull request #7 from kfarwell/patch-1
Fix inline link whitespace tricks
2 parents 15b9ee0 + 481e917 commit a8457ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/regexes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const regex_types = [
7474
copy_btn: document.getElementById("copy-regex-inline-links"),
7575
output: document.getElementById("regex-output-inline-links"),
7676
generator: function(settings) {
77-
return `\\[.*\\]\\(<?(?:https?://)?[a-z0-9_\\-\\.]*[a-z0-9_\\-]+\\.[a-z]{2,}.*>?\\)`
77+
return `\\[.*\\n*.*\\]\\(\\s*<?(?:https?://)?[a-z0-9_\\-\\.]*[a-z0-9_\\-]+\\.[a-z]{2,}.*>?\\s*\\)`
7878
},
7979
setting_elements: {}
8080
},

0 commit comments

Comments
 (0)