Skip to content

Commit 8cdac1e

Browse files
phatedactions-user
authored andcommitted
chore: Run prettier
1 parent 3e9f04a commit 8cdac1e

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ module.exports = function globParent(str, opts) {
3939
return str.replace(escaped, '$1');
4040
};
4141

42-
4342
function isEnclosure(str) {
44-
var lastChar = str.slice(-1)
43+
var lastChar = str.slice(-1);
4544

4645
var enclosureStart;
4746
switch (lastChar) {

test/index.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,19 +225,19 @@ describe('glob2base test patterns', function () {
225225
done();
226226
});
227227

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

234-
it('should finish in reasonable time for \'{\'.repeat(n)', function(done) {
234+
it("should finish in reasonable time for '{'.repeat(n)", function (done) {
235235
this.timeout(1000);
236236
gp('{'.repeat(500000));
237237
done();
238238
});
239239

240-
it('should finish in reasonable time for \'(\'.repeat(n)', function(done) {
240+
it("should finish in reasonable time for '('.repeat(n)", function (done) {
241241
this.timeout(1000);
242242
gp('('.repeat(500000));
243243
done();

0 commit comments

Comments
 (0)