mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-30 16:36:29 +01:00
Another migration of regexp call to re (EJAB-921)
This commit is contained in:
parent
3156cdf10e
commit
50f5356c89
@ -190,7 +190,7 @@ process(["help" | Mode]) ->
|
||||
print_usage_help(MaxC, ShCode),
|
||||
?STATUS_SUCCESS;
|
||||
[CmdString | _] ->
|
||||
{ok, CmdStringU, _} = regexp:gsub(CmdString, "-", "_"),
|
||||
CmdStringU = re:replace(CmdString, "-", "_", [global, {return, list}]),
|
||||
print_usage_commands(CmdStringU, MaxC, ShCode),
|
||||
?STATUS_SUCCESS
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user