Skip to content

Commit 9c8299d

Browse files
committed
Merge branch 'mysql-8.0' into mysql-trunk
2 parents ab8564b + 8605247 commit 9c8299d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugin/x/src/xpl_regex.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ bool xpl::Regex::match(const char *value) const {
5353
* and parse the text patter each time that xpl::Regex::match
5454
* is called.
5555
*/
56+
UnicodeString value_as_utf8{icu::UnicodeString::fromUTF8(value)};
5657
std::unique_ptr<icu::RegexMatcher> regexp{
57-
m_pattern->matcher(icu::UnicodeString::fromUTF8(value), match_status)};
58+
m_pattern->matcher(value_as_utf8, match_status)};
5859

5960
if (!U_SUCCESS(match_status)) return false;
6061

0 commit comments

Comments
 (0)