Browse Source

[Php] EReg fix

Simon Krajewski 12 years ago
parent
commit
3462bf902b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/php/_std/EReg.hx

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

@@ -84,7 +84,7 @@
 	}
 
 	public function split( s : String ) : Array<String> {
-		return untyped __php__("new _hx_array(preg_split($this->re, $s, $this->hglobal ? -1 : 2))");
+		return untyped __php__("new _hx_array(preg_split($this->re, $s, $this->{\"global\"} ? -1 : 2))");
 	}
 
 	public function replace( s : String, by : String ) : String {