Skip to content

Commit

Permalink
fix potential dos in regex
Browse files Browse the repository at this point in the history
  • Loading branch information
daaku committed Sep 7, 2021
1 parent 1dbd350 commit 4c654e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tmpl.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var INTERPOLATE = /{([\s\S]+?)}/g
var INTERPOLATE = /{([^{]+?)}/g

module.exports = function(str, data) {
var tmpl = 'var __p=[],print=function(){__p.push.apply(__p,arguments);};' +
Expand Down

0 comments on commit 4c654e4

Please sign in to comment.