24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-09-19 14:03:03 +02:00

Another migration of regexp call to re (EJAB-921)

This commit is contained in:
Badlop 2010-02-08 13:42:05 +01:00
parent 3156cdf10e
commit 50f5356c89

View File

@ -190,7 +190,7 @@ process(["help" | Mode]) ->
print_usage_help(MaxC, ShCode), print_usage_help(MaxC, ShCode),
?STATUS_SUCCESS; ?STATUS_SUCCESS;
[CmdString | _] -> [CmdString | _] ->
{ok, CmdStringU, _} = regexp:gsub(CmdString, "-", "_"), CmdStringU = re:replace(CmdString, "-", "_", [global, {return, list}]),
print_usage_commands(CmdStringU, MaxC, ShCode), print_usage_commands(CmdStringU, MaxC, ShCode),
?STATUS_SUCCESS ?STATUS_SUCCESS
end; end;