summaryrefslogtreecommitdiff
path: root/modules/unicode/unicode.js
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2021-06-01 12:50:24 +0200
committerTom Smeding <tom@tomsmeding.com>2021-06-01 12:50:24 +0200
commite2e858c4f24346278238c8a138fdd137c7367dc6 (patch)
tree1d567d368c69f504654a14b384e10fc377380d13 /modules/unicode/unicode.js
parentd8d7bcf494a6c1c5619ca552bd7105243b659f65 (diff)
unicode: We're finding codepoints, not characters
Diffstat (limited to 'modules/unicode/unicode.js')
-rw-r--r--modules/unicode/unicode.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/unicode/unicode.js b/modules/unicode/unicode.js
index 4a7f75a..113ea83 100644
--- a/modules/unicode/unicode.js
+++ b/modules/unicode/unicode.js
@@ -113,15 +113,15 @@ module.exports = function (app, io, moddir) {
});
app.get("/unicode/lookup/:query", (req, res) => {
- const chars = [];
+ const codepoints = [];
for (let codepoint of req.params.query) {
codepoint = codepoint.codePointAt(0);
- chars.push(lookupCode(codepoint));
+ codepoints.push(lookupCode(codepoint));
}
res.json({
index: recogniseIndex(req.params.query) || undefined,
- chars: chars,
+ codepoints: codepoints,
search: searchDescription(req.params.query),
});
});