Commit a874048c authored by Christian Persch's avatar Christian Persch

regex: Pass PCRE2_UCP flag

This enables the character classes to match using unicode properties,
not just ascii.
parent 40b00db9
......@@ -230,7 +230,7 @@ precompile_regexes (const TerminalRegexPattern *regex_patterns,
GError *error = NULL;
(*regexes)[i] = vte_regex_new_for_match (regex_patterns[i].pattern, -1,
PCRE2_UTF | PCRE2_NO_UTF_CHECK | PCRE2_MULTILINE,
PCRE2_UTF | PCRE2_NO_UTF_CHECK | PCRE2_UCP | PCRE2_MULTILINE,
&error);
g_assert_no_error (error);
......
......@@ -294,7 +294,7 @@ update_regex (TerminalSearchPopover *popover)
if (search_text[0] != '\0') {
guint32 compile_flags;
compile_flags = PCRE2_UTF | PCRE2_NO_UTF_CHECK | PCRE2_MULTILINE;
compile_flags = PCRE2_UTF | PCRE2_NO_UTF_CHECK | PCRE2_UCP | PCRE2_MULTILINE;
if (caseless)
compile_flags |= PCRE2_CASELESS;
......
Markdown is supported
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