|
|
|
|
|
by kentonv
3020 days ago
|
|
Yeah, trouble is, it's depressingly easy to create a regex that performs very poorly, so if we allowed that, people could easily break the service. However! One of the neat things about Workers is that you totally can use regexes in JavaScript, and our sandbox prevents runaway CPU usage. So if you really wanted regex-based page rules before, you can probably get that with a Worker. We've exposed an API for controlling Cloudflare features from a Worker, including many things commonly controlled via page rules: https://developers.cloudflare.com/workers/reference/cloudfla... We'll be adding more in the future. |
|
Would that still be true if you limited the regex support to DFAs instead of NFAs? I can’t think of a single use-case for backreferences in routing patterns. :)