ソースを参照

fixed issue 724

Franco Ponticelli 13 年 前
コミット
6aef920bfe
1 ファイル変更3 行追加1 行削除
  1. 3 1
      std/php/_std/EReg.hx

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

@@ -40,7 +40,9 @@
 		if( global )
 		if( global )
 			opt = a.join("");
 			opt = a.join("");
 		this.options = opt;
 		this.options = opt;
-		this.re = "/" + untyped __call__("str_replace", "/", "\\/", r) + "/" + opt;
+		var p : String = untyped __call__("str_replace", "/", "\\/", r);
+		p = untyped __call__("str_replace", "\\\\/", "\\\\\\/", p);
+		this.re = "/" + p + "/" + opt;
 	}
 	}
 
 
 	public function match( s : String ) : Bool {
 	public function match( s : String ) : Bool {