aboutsummaryrefslogtreecommitdiff
path: root/ext/jp/deinflector.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/jp/deinflector.js')
-rw-r--r--ext/jp/deinflector.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/jp/deinflector.js b/ext/jp/deinflector.js
index 3dd233eb..8c23de81 100644
--- a/ext/jp/deinflector.js
+++ b/ext/jp/deinflector.js
@@ -31,7 +31,7 @@ class Deinflection {
return true;
}
- for (const tag in this.tags) {
+ for (const tag of this.tags) {
if (this.searchTags(tag, tags)) {
return true;
}
@@ -51,7 +51,7 @@ class Deinflection {
const variants = rules[rule];
for (const v of variants) {
let allowed = this.tags.length === 0;
- for (const tag in this.tags) {
+ for (const tag of this.tags) {
if (this.searchTags(tag, v.tagsIn)) {
allowed = true;
break;