bekindprofanityfilter 0.0.6 → 0.0.7

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.
@@ -644,6 +644,21 @@ export declare class BeKind {
644
644
  * @param text - The input text.
645
645
  * @returns Normalized text.
646
646
  */
647
+ /**
648
+ * Regex matching numeric-punctuation clusters that should never be leet-decoded.
649
+ * Covers phone numbers "(206) 366-3311", prices "$8,575!", quantities "1,000",
650
+ * percentages "5%", times "7:30", and other numeric expressions.
651
+ * Matches any token that starts with or contains digits mixed with common
652
+ * numeric punctuation (,.!?:;$%#()/-) and has no adjacent letters.
653
+ */
654
+ /**
655
+ * Matches whitespace-delimited tokens that contain NO letters — only
656
+ * digits, punctuation, and symbols. These are pure numeric expressions
657
+ * (phone numbers, prices, years, quantities) and should never be
658
+ * leet-decoded. Tokens containing at least one letter (like "f0ck",
659
+ * "6006s", "b00bs") are left for leet-speak processing.
660
+ */
661
+ private static readonly PURE_NUMERIC_TOKEN_RE;
647
662
  private normalizeLeetSpeak;
648
663
  /**
649
664
  * Conservative leet normalization — only replaces non-letter characters