From 19ba118d177e78a41fc4b97e37f6cd5a846f8437 Mon Sep 17 00:00:00 2001 From: mkslanc Date: Fri, 5 Apr 2024 14:24:33 +0400 Subject: [PATCH] fix wrong states --- src/mode/markdown_highlight_rules.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/mode/markdown_highlight_rules.js b/src/mode/markdown_highlight_rules.js index d1277f1ae03..73b6ff7f172 100644 --- a/src/mode/markdown_highlight_rules.js +++ b/src/mode/markdown_highlight_rules.js @@ -237,7 +237,7 @@ var MarkdownHighlightRules = function () { regex: /www\.[a-zA-Z0-9-_]+(\.[a-zA-Z0-9-_]+)*\.[a-zA-Z0-9-]+/ }, { // autolink token: ["text", "url.underline", "text"], - regex: /(<)?((?:[-.\w+]+@[-a-z0-9]+(?:\.[-a-z0-9]+)*\.[a-z]+)|(?:[a-zA-Z][a-zA-Z0-9+.-]+:[^\s><]*))(>)?/ + regex: /(<)?((?:[-.\w+]+@[-a-z0-9]+(?:\.[-a-z0-9]+)*\.[a-z]+)|(?:[a-zA-Z][a-zA-Z0-9+.-]+:[\w\/]+))(>)?/ }, {include: "tag"}, { token: "comment", regex: /