aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/database.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-03-02 21:01:49 -0800
committerAlex Yatskov <alex@foosoft.net>2017-03-02 21:01:49 -0800
commita01ca1f17c056179ab9040bf702429fdd97742d6 (patch)
tree96fa5ac220098ff55c400616d799df3d71c5afd6 /ext/bg/js/database.js
parent5ecca4627e4edd54b8af606c69aa51e4b659deef (diff)
renaming things to make more sense
Diffstat (limited to 'ext/bg/js/database.js')
-rw-r--r--ext/bg/js/database.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/bg/js/database.js b/ext/bg/js/database.js
index 31573065..51f639d9 100644
--- a/ext/bg/js/database.js
+++ b/ext/bg/js/database.js
@@ -76,8 +76,8 @@ class Database {
results.push({
expression: row.expression,
reading: row.reading,
- tags: splitField(row.tags),
- rules: splitField(row.rules),
+ tags: dictFieldSplit(row.tags),
+ rules: dictFieldSplit(row.rules),
glossary: row.glossary,
score: row.score,
dictionary: row.dictionary,
@@ -105,9 +105,9 @@ class Database {
if (dictionaries.includes(row.dictionary)) {
results.push({
character: row.character,
- onyomi: splitField(row.onyomi),
- kunyomi: splitField(row.kunyomi),
- tags: splitField(row.tags),
+ onyomi: dictFieldSplit(row.onyomi),
+ kunyomi: dictFieldSplit(row.kunyomi),
+ tags: dictFieldSplit(row.tags),
glossary: row.meanings,
dictionary: row.dictionary
});
@@ -172,7 +172,7 @@ class Database {
const rows = [];
for (const tag in tagMeta || {}) {
const meta = tagMeta[tag];
- const row = sanitizeTag({
+ const row = dictTagSanitize({
name: tag,
category: meta.category,
notes: meta.notes,
@@ -229,6 +229,6 @@ class Database {
});
};
- return importJsonDb(indexUrl, indexLoaded, termsLoaded, kanjiLoaded).then(() => summary);
+ return jsonLoadDb(indexUrl, indexLoaded, termsLoaded, kanjiLoaded).then(() => summary);
}
}