Explorar o código

fixed replace in Neko.

Nicolas Cannasse %!s(int64=19) %!d(string=hai) anos
pai
achega
6fbb09eaf5
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      std/EReg.hx

+ 1 - 0
std/EReg.hx

@@ -167,6 +167,7 @@ class EReg {
 				if( c >= 49 && c <= 57 ) {
 					var p = regexp_matched_pos(r,c-48);
 					b.addSub(s,p.pos,p.len);
+					b.addSub(k,1,k.length - 1);
 				} else if( c == null ) {
 					b.add("$");
 					i += 1;