mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
GreaseMonkey: Don't parse pattern in GM_UrlMatcher
Url matching is now done by QtWebEngine
This commit is contained in:
parent
9c7bfb1c94
commit
fc606e2019
|
@ -60,7 +60,7 @@ GM_UrlMatcher::GM_UrlMatcher(const QString &pattern)
|
||||||
: m_pattern(pattern)
|
: m_pattern(pattern)
|
||||||
, m_useRegExp(false)
|
, m_useRegExp(false)
|
||||||
{
|
{
|
||||||
parsePattern(m_pattern);
|
//parsePattern(m_pattern);
|
||||||
}
|
}
|
||||||
|
|
||||||
QString GM_UrlMatcher::pattern() const
|
QString GM_UrlMatcher::pattern() const
|
||||||
|
@ -90,7 +90,6 @@ void GM_UrlMatcher::parsePattern(QString pattern)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pattern.contains(QLatin1String(".tld"))) {
|
if (pattern.contains(QLatin1String(".tld"))) {
|
||||||
|
|
||||||
pattern.replace(QzRegExp("(\\W)"), QLatin1String("\\\\1"))
|
pattern.replace(QzRegExp("(\\W)"), QLatin1String("\\\\1"))
|
||||||
.replace(QzRegExp("\\*+"), QLatin1String("*"))
|
.replace(QzRegExp("\\*+"), QLatin1String("*"))
|
||||||
.replace(QzRegExp("^\\\\\\|"), QLatin1String("^"))
|
.replace(QzRegExp("^\\\\\\|"), QLatin1String("^"))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user