Jelajahi Sumber

fixed neko global detection

Nicolas Cannasse 19 tahun lalu
induk
melakukan
302c38d9ca
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      std/EReg.hx

+ 1 - 1
std/EReg.hx

@@ -33,7 +33,7 @@ class EReg {
 	public function new( r : String, opt : String ) {
 		#if neko
 		var a = opt.split("g");
-		global = a.length != 1;
+		global = a.length > 1;
 		if( global )
 			opt = a.join("");
 		this.r = regexp_new_options(untyped r.__s, untyped opt.__s);