diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-03-25 21:55:22 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-03-25 21:55:22 -0700 |
commit | d38c5390eeb85438ee00fd528212dce4b31b457e (patch) | |
tree | 83244816ce041701939e4171eb313348f48c5e95 /ext/jp/deinflector.js | |
parent | a1bab38a2dafcbf0657ea3e653980cc053006ce7 (diff) |
Deinflection fixes.
Diffstat (limited to 'ext/jp/deinflector.js')
-rw-r--r-- | ext/jp/deinflector.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/jp/deinflector.js b/ext/jp/deinflector.js index 8c23de81..03f9d40a 100644 --- a/ext/jp/deinflector.js +++ b/ext/jp/deinflector.js @@ -75,7 +75,8 @@ class Deinflection { searchTags(tag, tags) { for (const t of tags) { - if (tag === t) { + const re = new RegExp(tag); + if (re.test(t)) { return true; } } |