spamscanner 5.1.0 → 5.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +0 -10
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -458,17 +458,7 @@ class SpamScanner {
458
458
  ttlMs: ms('1h'),
459
459
  // franc
460
460
  franc: {
461
- // NOTE: if locale was passed and was valid
462
- // then we need to compare it against english
463
- // and if it was english detected (and not und)
464
- // then switch the detected locale to english
465
461
  minLength: 5,
466
- // we can only support languages available
467
- // in stopwords and natural's tokenizer methods
468
- // and if it was detected to be english, compare against all languages
469
- // otherwise if not, then compare only against english
470
- // (namely we need to check against JP/ZH, but perhaps _all_ in future)
471
- // (the edge case is that someone could spoof a language and it go undetected and tokenization bugs occur)
472
462
  only: ISO_CODE_MAPPING_KEYS
473
463
  },
474
464
  ...config
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "spamscanner",
3
3
  "description": "Spam Scanner - The Best Anti-Spam Scanning Service and Anti-Spam API",
4
- "version": "5.1.0",
4
+ "version": "5.1.1",
5
5
  "author": "Niftylettuce, LLC. <niftylettuce@gmail.com> (https://niftylettuce.com/)",
6
6
  "bugs": {
7
7
  "url": "https://github.com/spamscanner/spamscanner/issues",