aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/deinflector.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-04-19 22:04:55 -0700
committerAlex Yatskov <alex@foosoft.net>2016-04-19 22:04:55 -0700
commit7ef0f4e8818e58f4623da48ca63d76f501e13376 (patch)
tree2f9628c0aa30ad6e5bd0b12eb3332ad831230631 /ext/bg/js/deinflector.js
parent8c0ead7a3a0b8897ca12ae1640c9275107f756c9 (diff)
Handle intermediate tags through addons
Diffstat (limited to 'ext/bg/js/deinflector.js')
-rw-r--r--ext/bg/js/deinflector.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/bg/js/deinflector.js b/ext/bg/js/deinflector.js
index 3c24ae3a..ec43f037 100644
--- a/ext/bg/js/deinflector.js
+++ b/ext/bg/js/deinflector.js
@@ -52,6 +52,10 @@ class Deinflection {
for (const v of variants) {
let allowed = this.tags.length === 0;
for (const tag of this.tags) {
+ //
+ // TODO: Handle addons through tags.json or rules.json
+ //
+
if (v.tagsIn.indexOf(tag) !== -1) {
allowed = true;
break;