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

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

#8 in #tld

Download history 1/week @ 2024-02-14 8/week @ 2024-02-21 4/week @ 2024-02-28 1/week @ 2024-03-13 26/week @ 2024-03-27 27/week @ 2024-04-03

53 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