Skip to content

Commit 8efab5b

Browse files
authored
fix: ignore ":" at end of URL #159
related: #157
1 parent dc21a22 commit 8efab5b

File tree

4 files changed

+536
-507
lines changed

4 files changed

+536
-507
lines changed

grammar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ module.exports = grammar({
226226
'*', '*'),
227227

228228
// URL without surrounding (), [], etc.
229-
url_word: () => /https?:\/\/[^\n\t\] ]*[^\n\t )\].,]/,
229+
url_word: () => /https?:\/\/[^\n\t\] ]*[^\n\t )\].,:]/,
230230
url: ($) => choice(
231231
// seq('(', field('text', prec.left(alias($.url_word, $.word))), token.immediate(')')),
232232
// seq('[', field('text', prec.left(alias($.url_word, $.word))), token.immediate(']')),

src/grammar.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)