New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.7 to 1.0.8

2

index.js

@@ -44,3 +44,3 @@ const wordBreak = require("word-break-trie");

if (!currentTrie.hasWord(last)) {
return `${ret}${last}`;
return `${ret}>>${last}<<`;
}

@@ -47,0 +47,0 @@ }

{
"name": "thai-typo-check",
"version": "1.0.7",
"version": "1.0.8",
"description": "for check thai typo",

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

@@ -25,4 +25,4 @@ # thai-typo-check

expect(thaiTypoCheckWords(goodSentence)).toBe(undefined);
expect(thaiTypoCheckWords(typoSentence)).toEqual(["ผฟใก่ร์"]);
expect(thaiTypoCheckWords(typoSentence)).toEqual("ฉัน,อยาก,กิน>>ผฟใก่ร์<<");
});
```

@@ -33,5 +33,5 @@ const { thaiTypoCheck, thaiTypoCheckWords } = require(".");

it("returns array of typos if any", () => {
expect(thaiTypoCheckWords("มาผผผผtestมาฝฝฝฝ")).toBe("มาผผผผ");
it("returns next typo when found typo", () => {
expect(thaiTypoCheckWords("มาผผผผtestมาฝฝฝฝ")).toBe("มา>>ผผผผ<<");
});
});

Sorry, the diff of this file is too big to display

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