fix semi-deterministic bug with link parser

This commit is contained in:
Rasmus Karlsson
2019-12-29 16:42:20 +01:00
parent 25a2c04b02
commit db860b5907
2 changed files with 7 additions and 10 deletions
-3
View File
@@ -170,8 +170,6 @@ parseAnchor:
done: done:
// check host // check host
if (this->hasMatch_)
{
this->hasMatch_ = isValidHostname(host) || isValidIpv4(host) this->hasMatch_ = isValidHostname(host) || isValidIpv4(host)
#ifdef C_MATCH_IPV6_LINK #ifdef C_MATCH_IPV6_LINK
@@ -183,7 +181,6 @@ done:
{ {
this->match_ = unparsedString; this->match_ = unparsedString;
} }
}
return; return;
+1 -1
View File
@@ -14,7 +14,7 @@ public:
QString getCaptured() const; QString getCaptured() const;
private: private:
bool hasMatch_; bool hasMatch_{false};
QString match_; QString match_;
}; };