pi-hole/docs

regex tutorial example typo

guygastineau opened this issue · 2 comments

Given To include a literal -, make it the first or last character ...
and
A domain name shall not start or end with a dash but can contain any number of them

I think the character group [\-]{1} should be [-]{1}
in

^[a-z0-9]+([\-]{1}[a-z0-9]+)*\.[a-z]{2,7}$

I already have a patch ready, but I don't see a developmental branch.

You can use master for this repo.