@drghaliasri/butex 6.1.1 → 6.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -842,7 +842,7 @@ declare function document2Outline(json: Document2Json): Document2OutlineEntry[];
842
842
  type Document2KeyError = 'empty' | 'invalid' | 'duplicate';
843
843
  /** NFC-normalize and trim a document key (label or bibliography). */
844
844
  declare function normalizeDocument2Key(key: string): string;
845
- /** True when key matches Unicode letters/marks, ASCII digits, and :._- with no spaces. */
845
+ /** True when key matches Unicode letters/marks, decimal digits, and :._- with no spaces. */
846
846
  declare function isValidDocument2Key(key: string): boolean;
847
847
  type Document2KeyNamespace = {
848
848
  references?: Array<Pick<Reference2, 'id' | 'key'>>;
@@ -842,7 +842,7 @@ declare function document2Outline(json: Document2Json): Document2OutlineEntry[];
842
842
  type Document2KeyError = 'empty' | 'invalid' | 'duplicate';
843
843
  /** NFC-normalize and trim a document key (label or bibliography). */
844
844
  declare function normalizeDocument2Key(key: string): string;
845
- /** True when key matches Unicode letters/marks, ASCII digits, and :._- with no spaces. */
845
+ /** True when key matches Unicode letters/marks, decimal digits, and :._- with no spaces. */
846
846
  declare function isValidDocument2Key(key: string): boolean;
847
847
  type Document2KeyNamespace = {
848
848
  references?: Array<Pick<Reference2, 'id' | 'key'>>;
package/dist/document2.js CHANGED
@@ -6693,7 +6693,7 @@ function document2Outline(json) {
6693
6693
  }
6694
6694
 
6695
6695
  // src/document2/keys.ts
6696
- var DOCUMENT2_KEY_PATTERN = /^[\p{L}\p{M}0-9:._-]+$/u;
6696
+ var DOCUMENT2_KEY_PATTERN = /^[\p{L}\p{M}\p{Nd}:._-]+$/u;
6697
6697
  function normalizeDocument2Key(key) {
6698
6698
  return key.normalize("NFC").trim();
6699
6699
  }