Skip to content

Commit

Permalink
chore: Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
phated authored and actions-user committed Jul 20, 2021
1 parent 3e9f04a commit 8cdac1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ module.exports = function globParent(str, opts) {
return str.replace(escaped, '$1');
};


function isEnclosure(str) {
var lastChar = str.slice(-1)
var lastChar = str.slice(-1);

var enclosureStart;
switch (lastChar) {
Expand Down
6 changes: 3 additions & 3 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,19 +225,19 @@ describe('glob2base test patterns', function () {
done();
});

it('should finish in reasonable time for \'{\' + \'/\'.repeat(n) [CVE-2021-35065]', function(done) {
it("should finish in reasonable time for '{' + '/'.repeat(n) [CVE-2021-35065]", function (done) {
this.timeout(1000);
gp('{' + '/'.repeat(500000));
done();
});

it('should finish in reasonable time for \'{\'.repeat(n)', function(done) {
it("should finish in reasonable time for '{'.repeat(n)", function (done) {
this.timeout(1000);
gp('{'.repeat(500000));
done();
});

it('should finish in reasonable time for \'(\'.repeat(n)', function(done) {
it("should finish in reasonable time for '('.repeat(n)", function (done) {
this.timeout(1000);
gp('('.repeat(500000));
done();
Expand Down

0 comments on commit 8cdac1e

Please sign in to comment.