Nicolas Cannasse 13 years ago
parent
commit
b1b080a343
1 changed files with 2 additions and 1 deletions
  1. 2 1
      std/flash/_std/EReg.hx

+ 2 - 1
std/flash/_std/EReg.hx

@@ -62,7 +62,8 @@
 	public function split( s : String ) : Array<String> {
 	public function split( s : String ) : Array<String> {
 		// we can't use directly s.split because it's ignoring the 'g' flag
 		// we can't use directly s.split because it's ignoring the 'g' flag
 		var d = "#__delim__#";
 		var d = "#__delim__#";
-		return untyped s.replace(r,d).split(d);
+		var s : String = untyped s.replace(r, d);
+		return s.split(d);
 	}
 	}
 
 
 	public function replace( s : String, by : String ) : String {
 	public function replace( s : String, by : String ) : String {