thai-typo-check
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"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 @@ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
857854
66
22
0