@6degrees/arabic-strings
Advanced tools
Comparing version 1.0.0 to 1.0.1
# @6degrees/arabic-strings | ||
## 1.0.1 | ||
### Patch Changes | ||
- fix Shadda cleaning | ||
## 1.0.0 | ||
@@ -4,0 +10,0 @@ |
@@ -126,2 +126,5 @@ "use strict"; | ||
function removeTashkel(str) { | ||
const escapedTashkeel = TASHKEEL.map((t) => "\\" + t).join("|"); | ||
const regex = new RegExp(escapedTashkeel, "g"); | ||
return str.replace(regex, ""); | ||
return str.replace(TASHKEEL_REGEX, ""); | ||
@@ -128,0 +131,0 @@ } |
{ | ||
"name": "@6degrees/arabic-strings", | ||
"license": "MIT", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "module": "dist/index.mjs", |
@@ -74,2 +74,6 @@ | ||
function removeTashkel(str: string): string { | ||
const escapedTashkeel = TASHKEEL.map((t) => "\\" + t).join("|"); | ||
const regex = new RegExp(escapedTashkeel, "g"); | ||
return str.replace(regex, ''); | ||
return str.replace(TASHKEEL_REGEX, ''); | ||
@@ -76,0 +80,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20279
423