glob-parent icon indicating copy to clipboard operation
glob-parent copied to clipboard

Extract the non-magic parent path from a glob string.

Results 7 glob-parent issues
Sort by recently updated
recently updated
newest added

This PR is to fix the issue #63 by separating a drive or a UNC volume from a path string before extracting and combines it after extracting. And this PR...

This PR modifies based on #64. The current `glob-parent` returns `'/.'` from `'/./*'` in the result path.. I've modified it to return `/'` by removing last '.' Similarly, I've modified...

### What were you expecting to happen? ```js expect(gp('C:/', { flipBackslashes: false })).toEqual('C:/'); expect(gp('C:/.', { flipBackslashes: false })).toEqual('C:/'); expect(gp('C:/*', { flipBackslashes: false })).toEqual('C:/'); expect(gp('C:/./*', { flipBackslashes: false })).toEqual('C:/.'); expect(gp('C://', {...

This seems to be due to a bug in https://github.com/micromatch/is-glob/issues/21

This PR is to fix the issue #51. This PR modifies `isEnclosure` function to ignore enclosures if they are escaped. (fixes #51)

Our enclosure logic doesn't account for escaped brackets. See PR thread for more information. _Originally posted by @phated in https://github.com/gulpjs/glob-parent/pull/49#r672822292_

Adjust minimum node version and update CI accordingly. --- Using "node:" prefixed imports enables the use of this library in runtimes other than node where node compatibility layer is provided...