Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/acl.erl')
-rw-r--r--src/acl.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/acl.erl b/src/acl.erl
index 59173f004..7b23719e5 100644
--- a/src/acl.erl
+++ b/src/acl.erl
@@ -223,19 +223,19 @@ match_acl(ACL, JID, Host) ->
end.
is_regexp_match(String, RegExp) ->
- case regexp:first_match(String, RegExp) of
+ case ejabberd_regexp:run(String, RegExp) of
nomatch ->
false;
- {match, _, _} ->
+ match ->
true;
{error, ErrDesc} ->
?ERROR_MSG(
"Wrong regexp ~p in ACL: ~p",
- [RegExp, lists:flatten(regexp:format_error(ErrDesc))]),
+ [RegExp, ErrDesc]),
false
end.
is_glob_match(String, Glob) ->
- is_regexp_match(String, regexp:sh_to_awk(Glob)).
+ is_regexp_match(String, ejabberd_regexp:sh_to_awk(Glob)).