MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / isValidIP

Function isValidIP

out/cli.cjs:29860–29868  ·  view source on GitHub ↗
(ip, version)

Source from the content-addressed store, hash-verified

29858 }
29859 exports2.datetimeRegex = datetimeRegex;
29860 function isValidIP(ip, version) {
29861 if ((version === "v4" || !version) && ipv4Regex.test(ip)) {
29862 return true;
29863 }
29864 if ((version === "v6" || !version) && ipv6Regex.test(ip)) {
29865 return true;
29866 }
29867 return false;
29868 }
29869 var ZodString = class _ZodString extends ZodType {
29870 _parse(input) {
29871 if (this._def.coerce) {

Callers 1

_parseMethod · 0.85

Calls 1

testMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…