Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "there may be many backreferences"

This reverts commit 1cfbac6.
  • Loading branch information...
commit 104567a648cce4271ec0ef6bf55a2b52dff55cad 1 parent 3ef702d
@marcuswestin authored
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, '\$\&')
}
Please sign in to comment.
Something went wrong with that request. Please try again.