Permalink
Browse files

Revert "attempt another backreference workaround fix"

This reverts commit cc64987.
  • Loading branch information...
1 parent cc64987 commit 3ef702db1271499159f4a30bfa1842defb979c50 @marcuswestin committed Mar 22, 2013
Showing with 2 additions and 3 deletions.
  1. +2 −3 compiler.js
View
@@ -60,10 +60,9 @@ function compileHTMLFile(filePath, opts) {
var js = compileFile(match[1].toString(), opts)
var BACKREFERENCE_WORKAROUND = '____________backreference_workaround________'
- var BACKREFERENCE_WORKAROUND_REGEX = new RegExp(BACKREFERENCE_WORKAROUND, 'g')
- js = js.replace(\$\&/g, BACKREFERENCE_WORKAROUND)
+ js = js.replace(/\$\&/g, BACKREFERENCE_WORKAROUND)
html = html.replace(match[0], '<script>'+js+'</script>')
- html = html.replace(BACKREFERENCE_WORKAROUND_REGEX, '\$\&')
+ html = html.replace(BACKREFERENCE_WORKAROUND, '\$\&')
}
return html
}

0 comments on commit 3ef702d

Please sign in to comment.