aboutsummaryrefslogtreecommitdiff
path: root/ext/jp/deinflector.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-03-25 21:55:22 -0700
committerAlex Yatskov <alex@foosoft.net>2016-03-25 21:55:22 -0700
commitd38c5390eeb85438ee00fd528212dce4b31b457e (patch)
tree83244816ce041701939e4171eb313348f48c5e95 /ext/jp/deinflector.js
parenta1bab38a2dafcbf0657ea3e653980cc053006ce7 (diff)
Deinflection fixes.
Diffstat (limited to 'ext/jp/deinflector.js')
-rw-r--r--ext/jp/deinflector.js3
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;
}
}