Browse Source

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

Aleksandr Kuzmenko 5 năm trước cách đây
mục cha
commit
0d606c2415
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      std/php/_std/EReg.hx

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

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