Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: support file which named '...' #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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