From e2e858c4f24346278238c8a138fdd137c7367dc6 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Tue, 1 Jun 2021 12:50:24 +0200 Subject: unicode: We're finding codepoints, not characters --- modules/unicode/unicode.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/unicode/unicode.js') 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), }); }); -- cgit v1.2.3-70-g09d2