From 8cdac1ea13b5d37d27705fb3954f691abbf305ed Mon Sep 17 00:00:00 2001 From: phated Date: Tue, 20 Jul 2021 05:47:02 +0000 Subject: [PATCH] chore: Run prettier --- index.js | 3 +-- test/index.test.js | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 7e61d6e..292d24f 100644 --- a/index.js +++ b/index.js @@ -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) { diff --git a/test/index.test.js b/test/index.test.js index 4769a74..7f1ee15 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -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();