{"version":3,"file":"_isFormatRelativeJsonPointer.mjs","names":[],"sources":["../../src/internal/_isFormatRelativeJsonPointer.ts"],"sourcesContent":["/**\n * Checks the `relative-json-pointer` format.\n *\n * A non-negative integer without leading zeros, followed by either `#` or a\n * JSON pointer.\n *\n * @evidence contracts/common.md#principled-implementation A relative pointer is a non-negative integer without leading zeros followed by either a hash or a JSON pointer, which the expression encodes with the same token rule as the absolute pointer.\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 draft specification's.\n * @evidence contracts/common.md#meaningful-documentation The doc states the prefix and suffix forms.\n */\nexport const _isFormatRelativeJsonPointer = (str: string): boolean =>\n  PATTERN.test(str);\n\nconst PATTERN = /^(?:0|[1-9][0-9]*)(?:#|(?:\\/(?:[^~/]|~0|~1)*)*)$/;\n"],"mappings":";;;;;;;;;;;;AAWA,MAAa,gCAAgC,QAC3C,QAAQ,KAAK,GAAG;AAElB,MAAM,UAAU"}