Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@6degrees/arabic-strings

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@6degrees/arabic-strings - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

CHANGELOG.md
# @6degrees/arabic-strings
## 1.0.1
### Patch Changes
- fix Shadda cleaning
## 1.0.0

@@ -4,0 +10,0 @@

3

dist/index.js

@@ -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 @@ }

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc