Last 12 weeks · 0 commits
4 of 6 standards met
Hi, this PR introduces a new option called . With this option, it is possible to check if a IPv4 address is in the private address range. For some applications - like starting a dev server only with a private IP address - it seems to be handy, to be able to check if an IP address is private or public. Some tests are included. This PR also extracts the IP octet as a constant, for making the regex's more readable.
Repository: sindresorhus/ip-regex. Description: Regular expression for matching IP addresses Stars: 198, Forks: 30. Primary language: JavaScript. Languages: JavaScript (96.2%), TypeScript (3.8%). License: MIT. Latest release: v5.0.0 (4y ago). Open PRs: 0, open issues: 0. Last activity: 2y ago. Community health: 85%. Top contributors: sindresorhus, Mottie, silverwind, coreyfarrell, Piterden, BendingBender, RichardLitt, Richienb, roryrjb.