Adjust the regex of queries to include all filenames possible on different operating systems
I adjusted the regex for path queries by using an inverse character class (?:[^"]|\\") instead of including possible characters. This would also allow emojis (resolving #189) and quotes for Linux and MacOS in file queries. Since the file already exists, we can assume that the filename is valid and can be queried. I've tested this patch for some time now and haven't noticed any problems.
Fixes:
I adjusted the regex for path queries by using an inverse character class
(?:[^"]|\\")
instead of including possible characters. This would also allow emojis (resolving #189) and quotes for Linux and MacOS in file queries. Since the file already exists, we can assume that the filename is valid and can be queried. I've tested this patch for some time now and haven't noticed any problems.