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

Backup folder RegExp matches any leading . #1241

Open
KlyithSA opened this issue Jan 11, 2025 · 0 comments
Open

Backup folder RegExp matches any leading . #1241

KlyithSA opened this issue Jan 11, 2025 · 0 comments

Comments

@KlyithSA
Copy link

Options.vue line 30:
folderNameRegExp = /[\<\>\:\"\/\\\|\?\*\x00-\x1F]|^(?:aux|con|nul|prn|com\d|lpt\d)$|^\.+|\.+$/gi;

|^.+
This regexp matches any string with a leading '.' which is much more strict than needed for any sort of protection. Leading dots are totally valid Windows folder / file names. (There is an ancient protection in Explorer that prevents naming files with leading dots, but this is for user convenience only and can be bypassed.)

For linux users this is particularly annoying as it blocks the use of a hidden folder to keep extra clutter at bay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant