Fixing backreference bug in WebKit

This commit is contained in:
Eston Bond
2010-12-06 18:03:26 -08:00
parent 641605b9fa
commit 2de9f5f396
@@ -484,6 +484,8 @@
debug('searching for ' + searchStr + ' to replace with ' + matches[i]);
rt = rt.replace( searchStr, matches[i] );
}
// remove any excess backreferences from the replace string
rt = rt.replace( /\$[\d]/g, '' );
repText = rt;
} else if ( repText == '' ) {
debug('Search string is empty');