Skip to content

Commit

Permalink
fix: keyword regex did not have start and end markers for each item
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyOGo committed Apr 24, 2020
1 parent 20afe19 commit 390c3e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const ruleFunction = (properties, options, context = {}) => (root, result) => {
const ignoreKeyword = getIgnoredKeywords(ignoreKeywords, property)

if (ignoreKeyword) {
reKeyword = new RegExp(`^${ignoreKeyword.join('|')}$`)
reKeyword = new RegExp(`^${ignoreKeyword.join('$|^')}$`)
reKeywords[property] = reKeyword
}
}
Expand Down

0 comments on commit 390c3e8

Please sign in to comment.