瀏覽代碼

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

Aleksandr Kuzmenko 6 年之前
父節點
當前提交
0d606c2415
共有 1 個文件被更改,包括 1 次插入0 次删除
  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;
 	}