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 f716cee commit 15eb97aCopy full SHA for 15eb97a
index.js
@@ -23,7 +23,7 @@ const REGEX_SPLITALL_CRLF = /\r?\n/g
23
// - ..
24
// Valid:
25
// - .foo
26
-const REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/
+const REGEX_TEST_INVALID_PATH = /^\.{0,2}\/|^\.{1,2}$/
27
28
const REGEX_TEST_TRAILING_SLASH = /\/$/
29
test/others.test.js
@@ -212,6 +212,12 @@ const IGNORE_TEST_CASES = [
212
['*.js', '!a/a.js'],
213
'a/a.js',
214
[false, true]
215
+ ],
216
+ [
217
+ `test: file which named '...'`,
218
+ 'foo',
219
+ '...',
220
+ [false, false]
221
]
222
223
0 commit comments