diff --git a/src/mode/markdown_highlight_rules.js b/src/mode/markdown_highlight_rules.js index d1277f1ae03..4eadb73720f 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: /