diff options
author | Björn Gustavsson <[email protected]> | 2011-08-09 14:17:44 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2011-10-26 15:44:00 +0200 |
commit | fe084d5d867de8839385c3652a0f727f97500a0a (patch) | |
tree | 2f0916766693421ddc613898689ab63b19b7db8b /lib/inviso/src/inviso_tool_lib.erl | |
parent | ef67cd9cf1daa1bca5b9ec65e0ea6721bb0452ed (diff) | |
download | otp-fe084d5d867de8839385c3652a0f727f97500a0a.tar.gz otp-fe084d5d867de8839385c3652a0f727f97500a0a.tar.bz2 otp-fe084d5d867de8839385c3652a0f727f97500a0a.zip |
inviso: Eliminate use of deprecated regexp module
Diffstat (limited to 'lib/inviso/src/inviso_tool_lib.erl')
-rw-r--r-- | lib/inviso/src/inviso_tool_lib.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/inviso/src/inviso_tool_lib.erl b/lib/inviso/src/inviso_tool_lib.erl index 7953acedd6..f221c4b6de 100644 --- a/lib/inviso/src/inviso_tool_lib.erl +++ b/lib/inviso/src/inviso_tool_lib.erl @@ -19,7 +19,7 @@ %% Support module to the inviso tool.
%%
%% Authors:
-%% Lennart �hman, [email protected]
+%% Lennart Öhman, [email protected]
%% -----------------------------------------------------------------------------
-module(inviso_tool_lib).
@@ -145,10 +145,10 @@ expand_module_names_2(Nodes,DirStr,ModStr,Opts) -> %% Always returns a regexp or {error,Reason}.
expand_module_names_special_regexp(Str) ->
StrLen=length(Str),
- case regexp:first_match(Str,"[0-9a-zA-Z_/]*") of
- {match,1,StrLen} -> % Ok, it is the special case.
+ case re:run(Str,"[0-9a-zA-Z_/]*") of
+ {match,[{0,StrLen}]} -> % Ok, it is the special case.
{ok,".*"++Str++".*"}; % Convert it to a proper regexp.
- {match,_,_} ->
+ {match,_} ->
{ok,Str}; % Keep it and hope it is a regexp.
nomatch ->
{ok,Str}; % Keep it and hope it is a regexp.
|