summaryrefslogtreecommitdiff
path: root/ext/bg/js/database.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-01-08 18:10:38 -0800
committerAlex Yatskov <alex@foosoft.net>2017-01-08 18:10:38 -0800
commit53a8e9061c482400186c8b041be520a519795c07 (patch)
treef503b6aad323a36579a76b65f62e3e3b14c3dece /ext/bg/js/database.js
parent148291d3a7cea096317c1c8d22f06f6e18cfdcfb (diff)
styling
Diffstat (limited to 'ext/bg/js/database.js')
-rw-r--r--ext/bg/js/database.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/database.js b/ext/bg/js/database.js
index b74a59a0..4d1f0fb5 100644
--- a/ext/bg/js/database.js
+++ b/ext/bg/js/database.js
@@ -78,7 +78,7 @@ class Database {
reading: row.reading,
tags: splitField(row.tags),
rules: splitField(row.rules),
- glossary: row.glossary,
+ glossary: row.glossary.map(g => g.trim()),
score: row.score,
dictionary: row.dictionary,
id: row.id
@@ -108,7 +108,7 @@ class Database {
onyomi: splitField(row.onyomi),
kunyomi: splitField(row.kunyomi),
tags: splitField(row.tags),
- glossary: row.meanings,
+ glossary: row.meanings.map(m => m.trim()),
dictionary: row.dictionary
});
}