Skip to content
Browse files

Revert "there may be many backreferences"

This reverts commit 1cfbac6.
  • Loading branch information...
1 parent 3ef702d commit 104567a648cce4271ec0ef6bf55a2b52dff55cad @marcuswestin committed Mar 22, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 compiler.js
View
2 compiler.js
@@ -60,7 +60,7 @@ function compileHTMLFile(filePath, opts) {
var js = compileFile(match[1].toString(), opts)
var BACKREFERENCE_WORKAROUND = '____________backreference_workaround________'
- js = js.replace(/\$\&/g, BACKREFERENCE_WORKAROUND)
+ js = js.replace('\$\&', BACKREFERENCE_WORKAROUND)
html = html.replace(match[0], '<script>'+js+'</script>')
html = html.replace(BACKREFERENCE_WORKAROUND, '\$\&')
}

0 comments on commit 104567a

Please sign in to comment.
Something went wrong with that request. Please try again.