{"version":3,"file":"_isFormatIpv4.mjs","names":[],"sources":["../../src/internal/_isFormatIpv4.ts"],"sourcesContent":["/**\n * Checks the dotted-decimal spelling of the `ipv4` format.\n *\n * Accepts exactly four decimal octets from 0 to 255 separated by dots, with no\n * leading zeros.\n *\n * @evidence contracts/common.md#principled-implementation Four octets of 0 to 255 without leading zeros are matched by an alternation of the decimal ranges, so values above 255 and zero-padded octets are rejected.\n * @evidence contracts/common.md#clear-and-simple-design One predicate and one private pattern, identical to the copy in @typia/utils.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts The ranges are the dotted-decimal grammar's.\n * @evidence contracts/common.md#meaningful-documentation The doc states the octet rule.\n */\nexport const _isFormatIpv4 = (str: string): boolean => PATTERN.test(str);\n\nconst PATTERN =\n  /^(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)$/;\n"],"mappings":";;;;;;;;;;;;AAWA,MAAa,iBAAiB,QAAyB,QAAQ,KAAK,GAAG;AAEvE,MAAM,UACJ"}