#domain #pattern #matcher #light #weight #tld

eater_domainmatcher

light weight and fast (probably) domain pattern matcher

3 releases

0.1.2 Sep 11, 2023
0.1.1 Aug 9, 2023
0.1.0 Aug 9, 2023

#10 in #tld

26 downloads per month

MIT license

15KB
294 lines

A simple and fast (probably) domain pattern matcher

A quick example of how and what it matches

  domain.tld sub.domain.tld sub.sub.domain.tld
domain.tld βœ… πŸ…ΎοΈ πŸ…ΎοΈ
*.domain.tld βœ… βœ… πŸ…ΎοΈ
+.domain.tld πŸ…ΎοΈ βœ… πŸ…ΎοΈ
**.domain.tld βœ… βœ… βœ…
**+.domain.tld πŸ…ΎοΈ βœ… βœ…

Implementation notes

There's some form of algorithmic blow up when doing *.*.*.*.*.*, this could be worked out in future versions, TODO etc

Dependencies

~19KB