diff --git a/lib/parse.js b/lib/parse.js index 34bdc2f..bb8e043 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -247,7 +247,7 @@ const parse = (input, options) => { output = token.close = `)$))${extglobStar}`; } - if (token.prev.type === 'bos' && eos()) { + if (token.prev.type === 'bos') { state.negatedExtglob = true; } }