We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Settings
Exclude files and folders function does not support Chinese
Make excluded files and folders support Chinese paths
I looked at the source code and guessed that the regular expression of the following function should be causing this problem:
// src/components/Settings/FuzzModal.ts export function wildTest(wildcard: string, str: string): boolean { const w = wildcard.replace(/[.+^${}()|[\]\\]/g, '\\$&'); // regexp escape const re = new RegExp(`\\b${w.replace(/\*/g, '.*').replace(/\?/g, '.')}`, 'i'); return re.test(str); }
I'm not sure how to debug the plugin, but I guess the following modifications might solve the problem:
export function wildTest(wildcard: string, str: string): boolean { const w = wildcard.replace(/[.+^${}()|[\]\\]/g, '\\$&'); // regexp escape const re = new RegExp(`\\b${w.replace(/\*/g, '.*').replace(/\?/g, '.')}`, 'iu'); // 添加 'u' 标志以支持中文 return re.test(str); }
No response
The text was updated successfully, but these errors were encountered:
Leo310
nicobrauchtgit
No branches or pull requests
Feature Area
Settings
Painpoint
Exclude files and folders function does not support Chinese
Describe your idea
Make excluded files and folders support Chinese paths
Alternatives
I looked at the source code and guessed that the regular expression of the following function should be causing this problem:
I'm not sure how to debug the plugin, but I guess the following modifications might solve the problem:
Additional Context
No response
The text was updated successfully, but these errors were encountered: