We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfd0096 commit 574f568Copy full SHA for 574f568
src/pcre2_substitute.c
@@ -854,7 +854,8 @@ if (use_existing_match)
854
if (start_offset != match_data->start_offset)
855
return PCRE2_ERROR_DIFFSUBSOFFSET;
856
857
- if ((options & ~SUBSTITUTE_OPTIONS) != match_data->options)
+ if ((options & ~(SUBSTITUTE_OPTIONS|PCRE2_NO_UTF_CHECK)) !=
858
+ (match_data->options & ~PCRE2_NO_UTF_CHECK))
859
return PCRE2_ERROR_DIFFSUBSOPTIONS;
860
}
861
0 commit comments