remi
remi copied to clipboard
Instead of listing special characters in re, '?' is excluded
The re_static_file should identify static files in URLS. To my understanding the main goal is to seperate the filename from the query string (seperated by '?'). The current solution lists a couple of special characters that might occur in filenames, but is not complete by far.
Instead of listing all possible special characters that might occur in filenames (especially user generated ones), this version of re_static_file only excludes the question mark, which would sperate the filename from the query string.
@shoubamzlibap I hadn't the time to test this. Have you tested this further? In which case the builtin regex fails?