ソースを参照

fixed neko global detection

Nicolas Cannasse 19 年 前
コミット
302c38d9ca
1 ファイル変更1 行追加1 行削除
  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);