瀏覽代碼

Merge pull request #5148 from markknol/patch-6

inline Ereg.replace
Dan Korostelev 9 年之前
父節點
當前提交
97e2d61fa4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/js/_std/EReg.hx

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

@@ -81,7 +81,7 @@
 		return untyped s.replace(r,d).split(d);
 	}
 
-	public function replace( s : String, by : String ) : String {
+	public inline function replace( s : String, by : String ) : String {
 		return untyped s.replace(r,by);
 	}