4 ms·
The following valid js regexp gives a server error: ^/([^/]+)[/]?(_((site)?(edit|show|manager))(/|$))?([\s\S]*)
by jontro 14y ago
The following valid js regexp gives a server error:
^/([^/]+)[/]?(_((site)?(edit|show|manager))(/|$))?([\s\S]*)
- k3n 14y ago[\s\S]* Doesn't this match every possible character, 0 to infinity times?
- dgreensp 14y agoIt's an idiom for `.*` when you want `.` to mean any character, including newlines. `.` never matches a newline in JS regexes.
- solox3 14y agoLooks like they reject any long regex, including the one on http://stackoverflow.com/questions/46155/validate-email-address-in-javascript http://stackoverflow.com/questions/46155/validate-email-addr...