Depend on regex-trie
mathiasbynens opened this issue · 2 comments
mathiasbynens commented
This could be simplified greatly by using https://github.com/alexeld/regex-trie.
jonschlinkert commented
ah, i was just going to create an issue and ask you what the prev. msg was b/c I saw it too late! thanks for that link I'll definitely take a look.
jonschlinkert commented
also I'd love a pr if anyone wants to give it a shot. I wish I'd seen it earlier. although my inner nerd is happy that i spent the time to to do this lol. it was an evening well spent.
edit: @mathiasbynens did you mean the code for year-range validation specifically, or for generating regex ranges in general? would be great if it could be used for both