textlint-rule-terminology
Advanced tools
Comparing version 2.1.4 to 2.1.5
@@ -24,3 +24,3 @@ // @ts-check | ||
// Create a seprate regexp of each array rule ([pattern, replacement]) | ||
// Create a separate regexp of each array rule ([pattern, replacement]) | ||
const advancedRules = terms.filter(rule => typeof rule !== 'string'); | ||
@@ -99,3 +99,8 @@ | ||
if (Array.isArray(exclude)) { | ||
return listTerms.filter(term => !exclude.includes(term)); | ||
return listTerms.filter(term => { | ||
if (Array.isArray(term)) { | ||
return !exclude.includes(term[0]); | ||
} | ||
return !exclude.includes(term); | ||
}); | ||
} | ||
@@ -102,0 +107,0 @@ return listTerms; |
{ | ||
"name": "textlint-rule-terminology", | ||
"version": "2.1.4", | ||
"version": "2.1.5", | ||
"description": "TextLint rule to check correct terms spelling", | ||
@@ -5,0 +5,0 @@ "author": { |
16677
360