Explorar el Código

Lua: Add special fix to handle double $$ situations with matched groups in regex

Justin Donaldson hace 9 años
padre
commit
531cdee9fe
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      std/lua/_std/EReg.hx

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

@@ -114,7 +114,7 @@ class EReg {
 	}
 
 	public function replace( s : String, by : String ) : String {
-		by = Rex.gsub(by, "\\$", "%%");
+		by = Rex.gsub(by, "\\$*\\$", "%%");
 		return Rex.gsub(s,r,by, global ? null : 1);
 	}