ejabberd_regexp: Support Unicode

This commit is contained in:
Holger Weiss 2018-09-26 19:10:32 +02:00
parent 5dcf2cde9c
commit aa162f30df
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ exec({ReM, ReF, ReA}, {RgM, RgF, RgA}) ->
-spec run(binary(), binary()) -> match | nomatch | {error, any()}.
run(String, Regexp) ->
case exec({re, run, [String, Regexp, [{capture, none}]]},
case exec({re, run, [String, Regexp, [{capture, none}, unicode]]},
{regexp, first_match, [binary_to_list(String),
binary_to_list(Regexp)]})
of