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

thai-typo-check

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

thai-typo-check - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

package.json
{
"name": "thai-typo-check",
"version": "1.0.3",
"version": "1.0.4",
"description": "for check thai typo",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -13,6 +13,10 @@ # thai-typo-check

const typoSentence = "ฉันอยากกินผฟใก่ร์";
const sentenceIncludesCustomWords = "ฉันอยากกินยำซี้ดพัทยา";
expect(thaiTypoCheck(goodSentence)).toBe(true);
expect(thaiTypoCheck(typoSentence)).toBe(false);
expect(thaiTypoCheck(sentenceIncludesCustomWords, ["ซี้ด", "พัทยา"])).toBe(
true
); // second parameter is the list of custom words
});
```

@@ -10,3 +10,5 @@ const thaiTypoCheck = require(".");

it("should support custom words", () => {
expect(thaiTypoCheck("ฉันอยากกินยำพัทยา", ["พัทยา"])).toBe(true);
expect(thaiTypoCheck("ฉันอยากกินยำซี้ดพัทยา", ["ซี้ด", "พัทยา"])).toBe(
true
);
});

@@ -13,0 +15,0 @@

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