summaryrefslogtreecommitdiff
path: root/ext/jp/deinflector.js
diff options
context:
space:
mode:
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;
}
}