Skip to content

Commit

Permalink
appmon: Eliminate use of deprecated regexp module
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorng committed Oct 26, 2011
1 parent b22894a commit b5599c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/appmon/src/appmon_web.erl
Expand Up @@ -578,9 +578,9 @@ htmlify_pid([],New)->
%% the HTTP protocol %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
urlify_pid(Pid) ->
case regexp:first_match(Pid,"[<].*[>]") of
{match,Start,Len}->
"%3C"++string:substr(Pid,Start+1,Len-2)++"%3E";
case re:run(Pid,"[<](.*)[>]",[{capture,all_but_first,list}]) of
{match,[PidStr]}->
"%3C"++PidStr++"%3E";
_->
Pid
end.
Expand Down

0 comments on commit b5599c9

Please sign in to comment.