Closed
Description
I would like to make a breaking change update to the way paths match, but I'm interested in everyones opinions before I implement any changes. My biggest gripe right now is that the special characters outside of a custom matching group restricts the characters that can be used inside of a matching group. I want to change this behaviour so only regex characters can be used inside a matching group and characters outside will be escaped.
Examples:
/test?
- currently valid, makes thet
character optional which really looks like a bug/:test(.*)
- currently invalid, periods are being escaped and asterisks are being turned into matching any character groups/(\\d+)
- currently won't be indexed properly since we don't have any regex group logic/\\*
- currently invalid, can't escape the meaning of special characters and will still become a match all route