joethei / obsidian-rss

Read RSS Feeds from inside Obsidian
GNU General Public License v3.0
394 stars 23 forks source link

[bug] file name sanitization with [] #136

Open nhomble opened 5 months ago

nhomble commented 5 months ago

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 \[\]