We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cc95d2 commit fdfd710Copy full SHA for fdfd710
2 files changed
index.js
@@ -17,7 +17,8 @@ const REGEX_SPLITALL_CRLF = /\r?\n/g
17
// ../foo,
18
// .
19
// ..
20
-const REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/
+
21
+const REGEX_TEST_INVALID_PATH = /^\.{0,2}\/|^\.{1,2}$/
22
23
const SLASH = '/'
24
const KEY_IGNORE = typeof Symbol !== 'undefined'
test/others.js
@@ -188,6 +188,12 @@ const IGNORE_TEST_CASES = [
188
['*.js', '!a/a.js'],
189
'a/a.js',
190
[false, true]
191
+ ],
192
+ [
193
+ `test: file which named '...'`,
194
+ 'foo',
195
+ '...',
196
+ [false, false]
197
]
198
199
0 commit comments