pi-hashline-edit-pro 6.5.1 → 7.0.0

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.
@@ -1,16 +1,16 @@
1
1
  import anchorData from "./anchor-table.json";
2
2
  const rawAnchors: unknown = (anchorData as { anchors?: unknown }).anchors;
3
- if (typeof rawAnchors !== "string" || rawAnchors.length === 0 || rawAnchors.length % 4 !== 0) {
3
+ if (typeof rawAnchors !== "string" || rawAnchors.length === 0 || rawAnchors.length % 5 !== 0) {
4
4
  throw new Error("[E_REGISTRY] Anchor table is missing or corrupt; reinstall pi-hashline-edit-pro.");
5
5
  }
6
6
  const TABLE: string = rawAnchors;
7
- export const HASH_LEN = 4;
7
+ export const HASH_LEN = 5;
8
8
  export const ANCHOR_COUNT = TABLE.length / HASH_LEN;
9
9
  const LETTERS = "A-Za-z";
10
10
 
11
11
  export const ALPH_RE = new RegExp(`^[${LETTERS}]+$`);
12
12
 
13
- export const HASH_CLASS = `[${LETTERS}]{${HASH_LEN}}`;
13
+ export const HASH_CLASS = `[a-z]{${HASH_LEN}}`;
14
14
 
15
15
  export const HASH_RUN = `[${LETTERS}]{${HASH_LEN},${HASH_LEN + 1}}`;
16
16