Merge pull request #805 from MrJaeger/respect-dollar-signs

Allow for $ characters on front-end editor
This commit is contained in:
Dawa Ometto
2014-06-01 17:54:52 +02:00
@@ -546,9 +546,12 @@
typeof definitionObject.replace == 'string' ) {
debug('Running replacement - using ' + definitionObject.replace);
var rt = definitionObject.replace;
repText = escape( repText );
repText = repText.replace( searchExp, rt );
// remove backreferences
repText = repText.replace( /\$[\d]/g, '' );
repText = unescape( repText );
if ( repText === '' ) {
debug('Search string is empty');