Skip to content

Commit

Permalink
fix: Fix ReDoS vulnerability CVE-2021-35065
Browse files Browse the repository at this point in the history
  • Loading branch information
sttk committed Jun 24, 2021
1 parent 3ad9597 commit d16d629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var isWin32 = require('os').platform() === 'win32';

var slash = '/';
var backslash = /\\/g;
var enclosure = /[{[].*\/.*[}\]]$/;
var enclosure = /[{[][^/\r\n\u2028\u2029]*\/.*[}\]]$/;
var globby = /(^|[^\\])([{[]|\([^)]+$)/;
var escaped = /\\([!*?|[\](){}])/g;

Expand Down

0 comments on commit d16d629

Please sign in to comment.