diff options
author | Björn Gustavsson <[email protected]> | 2011-08-25 12:08:29 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2011-10-26 15:44:01 +0200 |
commit | 9e034e51ca0f051b62e389545b3f5a56b9cec393 (patch) | |
tree | 1ad14bcbffcf9f9bbec5a12a4b64b01fe440b536 /lib/gs/src/gstk_editor.erl | |
parent | fe084d5d867de8839385c3652a0f727f97500a0a (diff) | |
download | otp-9e034e51ca0f051b62e389545b3f5a56b9cec393.tar.gz otp-9e034e51ca0f051b62e389545b3f5a56b9cec393.tar.bz2 otp-9e034e51ca0f051b62e389545b3f5a56b9cec393.zip |
gs: Eliminate use of deprecated regexp module
Diffstat (limited to 'lib/gs/src/gstk_editor.erl')
-rw-r--r-- | lib/gs/src/gstk_editor.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gs/src/gstk_editor.erl b/lib/gs/src/gstk_editor.erl index 3e0c8240e4..8cc7021cc6 100644 --- a/lib/gs/src/gstk_editor.erl +++ b/lib/gs/src/gstk_editor.erl @@ -243,14 +243,14 @@ option(Option, Gstkid, _MainW, DB, Editor) -> Editor, " ins ",AI," ", gstk:to_ascii(Text)]}; clear -> {c, [Editor, " delete 1.0 end"]}; {load, File} -> - {ok, F2,_} = regexp:gsub(File, [92,92], "/"), + F2 = re:replace(File, [92,92], "/", [global,{return,list}]), case gstk:call(["ed_load ", Editor, " ", gstk:to_ascii(F2)]) of {result, _} -> none; {bad_result,Re} -> {error,{no_such_file,editor,load,F2,Re}} end; {save, File} -> - {ok, F2,_} = regexp:gsub(File, [92,92], "/"), + F2 = re:replace(File, [92,92], "/", [global,{return,list}]), case gstk:call(["ed_save ",Editor," ",gstk:to_ascii(F2)]) of {result, _} -> none; {bad_result,Re} -> |