Skip to content
Snippets Groups Projects
Commit 5f28e907 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

regexp() fixed

Rev: lib/simulate.lpc:1.21
parent cb03099f
No related branches found
No related tags found
No related merge requests found
...@@ -324,9 +324,11 @@ function get_function(object o, string a) ...@@ -324,9 +324,11 @@ function get_function(object o, string a)
string *regexp(string *s, string reg) string *regexp(string *s, string reg)
{ {
regexp::create(reg); regexp::create(reg);
return filter_array(s,match); s=filter_array(s,match);
regexp::create(); /* Free compiled regexp */ regexp::create(); /* Free compiled regexp */
return s;
} }
list mklist(mixed *a) list mklist(mixed *a)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment