{"version":3,"file":"_isFormatIri.mjs","names":[],"sources":["../../src/internal/_isFormatIri.ts"],"sourcesContent":["import { _isFormatIriReference } from \"./_isFormatIriReference\";\n\n/**\n * Checks the `iri` format: an IRI reference that begins with a scheme.\n *\n * The scheme must be a letter followed by letters, digits, `+`, `.` or `-` and\n * a colon. The rest is judged by {@link _isFormatIriReference}.\n *\n * @evidence contracts/common.md#principled-implementation An IRI is an IRI reference that begins with a scheme, so the predicate requires the scheme prefix and delegates the character rules to the reference predicate.\n * @evidence contracts/common.md#clear-and-simple-design One predicate that composes the scheme test and the reference predicate, identical to the copy in @typia/utils.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts The composition follows the definition of an IRI as an absolute reference.\n * @evidence contracts/common.md#meaningful-documentation The doc states the scheme requirement and the delegation.\n */\nexport const _isFormatIri = (str: string): boolean =>\n  SCHEME.test(str) && _isFormatIriReference(str);\n\nconst SCHEME = /^[A-Za-z][A-Za-z0-9+.-]*:/u;\n"],"mappings":";;;;;;;;;;;;;AAaA,MAAa,gBAAgB,QAC3B,OAAO,KAAK,GAAG,KAAK,sBAAsB,GAAG;AAE/C,MAAM,SAAS"}