Skip to content

Instead of listing special characters in re, '?' is excluded#172

Open
shoubamzlibap wants to merge 1 commit intorawpython:masterfrom
shoubamzlibap:re_static_file
Open

Instead of listing special characters in re, '?' is excluded#172
shoubamzlibap wants to merge 1 commit intorawpython:masterfrom
shoubamzlibap:re_static_file

Conversation

@shoubamzlibap
Copy link

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.

@dddomodossola
Copy link
Collaborator

@shoubamzlibap I hadn't the time to test this. Have you tested this further? In which case the builtin regex fails?

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

Successfully merging this pull request may close these issues.

2 participants