소스 검색

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);