Open ridvanaltun opened 1 month ago
My initial reaction is that I like the idea of a createMatcher
(or similar) utility that helps create custom matchers and can support using string patterns. But it should probably also make it easy to create capturing groups, similar in concept to path-to-regexp.
Needing to rebuild the regex on every render is something I'd like to avoid, which is why I think it should be separate from the component itself.
Hey, I did something like this to support string patterns:
My aim increase the usability. I don't know is there any issue with it but it worked so far.
What do you think? @joshswan