Commit 651bcfb7 authored by Ahmad Samir's avatar Ahmad Samir Committed by Kurt Hindenburg
Browse files

Match urls between grave `

CCBUG: 455166
FIXED-IN: 22.08
parent 75226860
Pipeline #192013 passed with stage
in 3 minutes and 47 seconds
......@@ -43,6 +43,9 @@ void HotSpotFilterTest::testUrlFilterRegex_data()
QTest::newRow("quote_before") << "\"http://www.ietf.org/rfc/rfc2396.txt"
<< "http://www.ietf.org/rfc/rfc2396.txt" << true;
QTest::newRow("grave_before") << "`https://foo.bar`"
<< "https://foo.bar" << true;
QTest::newRow("file_scheme") << "file:///some/file"
<< "file:///some/file" << true;
......
......@@ -38,7 +38,7 @@ using namespace Konsole;
// scheme://
// - Must start with an ASCII letter, preceeded by any non-word character,
// so "http" but not "mhttp"
static const char scheme_or_www[] = "(?<=^|[\\s\\[\\]()'\"])(?:www\\.|[a-z][a-z0-9+\\-.]*+://";
static const char scheme_or_www[] = "(?<=^|[\\s\\[\\]()'\"`])(?:www\\.|[a-z][a-z0-9+\\-.]*+://";
static const char scheme_or_www_end[] = ")";
// unreserved / pct-encoded / sub-delims
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment