@lokascript/framework 2.9.0 → 2.9.2

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.
@@ -47,10 +47,10 @@ export interface LatinCharClassifiers {
47
47
  *
48
48
  * @example
49
49
  * // Spanish letters
50
- * const { isLetter, isIdentifierChar } = createLatinCharClassifiers(/[a-zA-ZáéíóúüñÁÉÍÓÚÜÑ]/);
50
+ * const { isLetter, isIdentifierChar } = createLatinCharClassifiers(/[a-zA-Z\u00e1\u00e9\u00ed\u00f3\u00fa\u00fc\u00f1\u00c1\u00c9\u00cd\u00d3\u00da\u00dc\u00d1]/);
51
51
  *
52
52
  * // German letters
53
- * const { isLetter, isIdentifierChar } = createLatinCharClassifiers(/[a-zA-ZäöüÄÖÜß]/);
53
+ * const { isLetter, isIdentifierChar } = createLatinCharClassifiers(/[a-zA-Z\u00e4\u00f6\u00fc\u00c4\u00d6\u00dc\u00df]/);
54
54
  */
55
55
  export declare function createLatinCharClassifiers(letterPattern: RegExp): LatinCharClassifiers;
56
56
  //# sourceMappingURL=char-classifiers.d.ts.map
@@ -105,7 +105,7 @@ function isDigit(char) {
105
105
  return /\d/.test(char);
106
106
  }
107
107
  function stripOptionalDiacritics(word) {
108
- return word.replace(/[ً-ْٰ]/g, "");
108
+ return word.replace(/[\u064b-\u0652\u0670]/g, "");
109
109
  }
110
110
  function isAsciiLetter(char) {
111
111
  return /[a-zA-Z]/.test(char);