aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/dictionary.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-10-21 21:33:54 -0700
committerAlex Yatskov <alex@foosoft.net>2016-10-21 21:33:54 -0700
commite51f43886b0c1c191dd1f4b0e8fceaf83034c8ba (patch)
treeb58248844bf0b2f36af938d5914c38a14964db57 /ext/bg/js/dictionary.js
parent83f5bd24dfeb60637141ddc7cd0b99513ac74eec (diff)
Fixing blank tags
Diffstat (limited to 'ext/bg/js/dictionary.js')
-rw-r--r--ext/bg/js/dictionary.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/bg/js/dictionary.js b/ext/bg/js/dictionary.js
index daab5ebd..1d54190e 100644
--- a/ext/bg/js/dictionary.js
+++ b/ext/bg/js/dictionary.js
@@ -79,7 +79,7 @@ class Dictionary {
results.push({
expression: row.expression,
reading: row.reading,
- tags: row.tags.split(' '),
+ tags: splitField(row.tags),
glossary: row.glossary,
id: row.id
});
@@ -103,9 +103,9 @@ class Dictionary {
return this.db.kanji.where('character').equals(kanji).each(row => {
results.push({
character: row.character,
- onyomi: row.onyomi.split(' '),
- kunyomi: row.kunyomi.split(' '),
- tags: row.tags.split(' '),
+ onyomi: splitField(row.onyomi),
+ kunyomi: splitField(row.kunyomi),
+ tags: splitField(row.tags),
glossary: row.meanings
});
}).then(() => results);