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

[bug] file name sanitization with [] #136

Open
nhomble opened this issue Jun 5, 2024 · 0 comments
Open

[bug] file name sanitization with [] #136

nhomble opened this issue Jun 5, 2024 · 0 comments

Comments

@nhomble
Copy link

nhomble commented Jun 5, 2024

When creating a new note from a feed item with [ or ] in the title, the filename is not sanitized such that the note cannot be created.

I think this can be fixed by modifying

var FILE_NAME_REGEX = /["\/<>:|?]/gm;

by adding \[\]

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