Skip to content
Permalink
Browse files

Fix coloring of non-formatted urls

  • Loading branch information...
pbek committed Jun 18, 2019
1 parent 7ef6806 commit 8de729fd67f8a004d26339ed24f642b3cf0655ac
Showing with 1 addition and 1 deletion.
  1. +1 −1 markdownhighlighter.cpp
@@ -185,7 +185,7 @@ void MarkdownHighlighter::initHighlightingRules() {

// highlight urls without any other markup
rule.pattern = QRegularExpression(R"(\b\w+?:\/\/[^\s]+)");
rule.capturingGroup = 1;
rule.capturingGroup = 0;
_highlightingRulesAfter.append(rule);

// rule.pattern = QRegularExpression("<(.+?:\\/\\/.+?)>");

0 comments on commit 8de729f

Please sign in to comment.
You can’t perform that action at this time.