File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,8 @@ module.exports = function globParent(str, opts) {
3939 return str . replace ( escaped , '$1' ) ;
4040} ;
4141
42-
4342function isEnclosure ( str ) {
44- var lastChar = str . slice ( - 1 )
43+ var lastChar = str . slice ( - 1 ) ;
4544
4645 var enclosureStart ;
4746 switch ( lastChar ) {
Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments