Skip to content

Commit

Permalink
Merge pull request #256 from Toilal/fix/template-processing-oops
Browse files Browse the repository at this point in the history
Oops fix regexp replacement
  • Loading branch information
Swiip committed Jan 15, 2015
2 parents 240bb78 + 20444f8 commit 96503e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/write.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = function () {
var data = this;

function process(content) {
return _.template(content.toString().replace(/\n<%![-=]]/g, '<%'), data);
return _.template(content.toString().replace(/\n<%([^-=])/g, '<%$1'), data);
}

var copy = function copy(src, dest, processing) {
Expand Down

0 comments on commit 96503e9

Please sign in to comment.