mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +01:00
ejabberd_regexp: Support Unicode
This commit is contained in:
parent
5dcf2cde9c
commit
aa162f30df
@ -36,7 +36,7 @@ exec({ReM, ReF, ReA}, {RgM, RgF, RgA}) ->
|
|||||||
-spec run(binary(), binary()) -> match | nomatch | {error, any()}.
|
-spec run(binary(), binary()) -> match | nomatch | {error, any()}.
|
||||||
|
|
||||||
run(String, Regexp) ->
|
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),
|
{regexp, first_match, [binary_to_list(String),
|
||||||
binary_to_list(Regexp)]})
|
binary_to_list(Regexp)]})
|
||||||
of
|
of
|
||||||
|
Loading…
Reference in New Issue
Block a user