You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
AlanSean
changed the title
There are no escape parentheses,Incorrectly matches [1-5] against [1-5]
There are no escape parentheses,Incorrectly matches 新建文件夹 (2) against 新建文件夹 (2)Mar 3, 2021
picomatch@^2.2.1
Code:
const picomatch = require('picomatch');
const file1 = 'C:/Users/111/Desktop/新建文件夹 (2)/QQ图片20210204193714.jpg';
const file2 = '新建文件夹()';
const a= picomatch.makeRe(file1,{
dot: false,
matchBase: false,
nobrace: false,
nocase: false,
noext: false,
noglobstar: false,
posix: true,
strictSlashes: false
})
const a2= picomatch.makeRe(file2,{
dot: false,
matchBase: false,
nobrace: false,
nocase: false,
noext: false,
noglobstar: false,
posix: true,
strictSlashes: false
})
a1.test(file1);//false
a2.test(file2);//
/^(?:新建文件夹())$/ false
Expected result: true
Actual result: false
The text was updated successfully, but these errors were encountered: