From: Holger Weiss Date: Wed, 26 Sep 2018 17:10:32 +0000 (+0200) Subject: ejabberd_regexp: Support Unicode X-Git-Tag: 18.12~94 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa162f30dfe9c4036426fb75b99ba7dc7a92af5e;p=ejabberd ejabberd_regexp: Support Unicode --- diff --git a/src/ejabberd_regexp.erl b/src/ejabberd_regexp.erl index 12564e710..284797529 100644 --- a/src/ejabberd_regexp.erl +++ b/src/ejabberd_regexp.erl @@ -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