Explorar o código

[php] remove 'u' from user-defined EReg options (#8861)

Aleksandr Kuzmenko %!s(int64=6) %!d(string=hai) anos
pai
achega
0d606c2415
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      std/php/_std/EReg.hx

+ 1 - 0
std/php/_std/EReg.hx

@@ -37,6 +37,7 @@ import php.*;
 		this.pattern = r;
 		options = Global.str_replace('g', '', opt);
 		global = options != opt;
+		options = Global.str_replace('u', '', options);
 		this.re = '"' + Global.str_replace('"', '\\"', r) + '"' + options;
 	}