We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ab8564b + 8605247 commit 9c8299dCopy full SHA for 9c8299d
plugin/x/src/xpl_regex.cc
@@ -53,8 +53,9 @@ bool xpl::Regex::match(const char *value) const {
53
* and parse the text patter each time that xpl::Regex::match
54
* is called.
55
*/
56
+ UnicodeString value_as_utf8{icu::UnicodeString::fromUTF8(value)};
57
std::unique_ptr<icu::RegexMatcher> regexp{
- m_pattern->matcher(icu::UnicodeString::fromUTF8(value), match_status)};
58
+ m_pattern->matcher(value_as_utf8, match_status)};
59
60
if (!U_SUCCESS(match_status)) return false;
61
0 commit comments