Skip to content

Commit

Permalink
fix: support file which named '....'
Browse files Browse the repository at this point in the history
  • Loading branch information
howel52 committed Jan 6, 2021
1 parent 7cc95d2 commit fdfd710
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Expand Up @@ -17,7 +17,8 @@ const REGEX_SPLITALL_CRLF = /\r?\n/g
// ../foo,
// .
// ..
const REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/

const REGEX_TEST_INVALID_PATH = /^\.{0,2}\/|^\.{1,2}$/

const SLASH = '/'
const KEY_IGNORE = typeof Symbol !== 'undefined'
Expand Down
6 changes: 6 additions & 0 deletions test/others.js
Expand Up @@ -188,6 +188,12 @@ const IGNORE_TEST_CASES = [
['*.js', '!a/a.js'],
'a/a.js',
[false, true]
],
[
`test: file which named '...'`,
'foo',
'...',
[false, false]
]
]

Expand Down

0 comments on commit fdfd710

Please sign in to comment.