Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "attempt another backreference workaround fix"

This reverts commit cc64987.
  • Loading branch information...
commit 3ef702db1271499159f4a30bfa1842defb979c50 1 parent cc64987
@marcuswestin authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 compiler.js
View
5 compiler.js
@@ -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
}
Please sign in to comment.
Something went wrong with that request. Please try again.