{"version":3,"file":"_isFormatJsonPointer.mjs","names":[],"sources":["../../src/internal/_isFormatJsonPointer.ts"],"sourcesContent":["/**\n * Checks the RFC 6901 JSON pointer spelling of the `json-pointer` format.\n *\n * The empty string is the whole-document pointer; otherwise every reference\n * token starts with `/` and may contain `~` only as `~0` or `~1`.\n *\n * @evidence contracts/common.md#principled-implementation RFC 6901 allows the empty pointer and otherwise tokens that each start with a slash, where a tilde is valid only as `~0` or `~1`, which the expression states directly.\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 grammar is the standard's.\n * @evidence contracts/common.md#meaningful-documentation The doc states the empty pointer and the tilde rule.\n */\nexport const _isFormatJsonPointer = (str: string): boolean => PATTERN.test(str);\n\nconst PATTERN = /^(?:\\/(?:[^~/]|~0|~1)*)*$/;\n"],"mappings":";;;;;;;;;;;;AAWA,MAAa,wBAAwB,QAAyB,QAAQ,KAAK,GAAG;AAE9E,MAAM,UAAU"}