Comparing version 3.1.0 to 3.2.0
# Changelog | ||
# 3.2.0 | ||
- File extension with multiple dots #66, #67 @levonet | ||
# 3.1.0 | ||
@@ -4,0 +7,0 @@ - Remove acute accent, shy and other symbols #65 |
@@ -130,6 +130,4 @@ 'use strict'; | ||
isReqFileExtension(file, fileExtensions) { | ||
let ext = pth.extname(file); | ||
return !fileExtensions.length || | ||
(fileExtensions.length === 1 && !fileExtensions[0]) || | ||
fileExtensions.indexOf(ext) !== -1; | ||
const buf = fileExtensions.filter(ext => ext.trim()); | ||
return !buf.length || buf.some(ext => ext === file.slice(ext.length * -1)); | ||
}, | ||
@@ -136,0 +134,0 @@ /** |
@@ -13,3 +13,3 @@ { | ||
"description": "Search tool typos in the text, files and websites", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"license": "MIT", | ||
@@ -16,0 +16,0 @@ "homepage": "https://github.com/hcodes/yaspeller", |
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
70848
1860