Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All credits for this regex to https://stackoverflow.com/a/36760050. The regex is both more correct and faster (https://esbench.com/bench/6532596e7ff73700a4debb6a). Examples: previous regex recognized "01.01.01.01" or "1.1.000.1" as correct ipv4 regex, but those aren't valid as per https://datatracker.ietf.org/doc/html/rfc5954#section-4.1.
- Loading branch information