diff options
Diffstat (limited to 'ext/bg/js/database.js')
-rw-r--r-- | ext/bg/js/database.js | 4 |
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 }); } |