aboutsummaryrefslogtreecommitdiff
path: root/ext/js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js')
-rw-r--r--ext/js/language/dictionary-importer.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/ext/js/language/dictionary-importer.js b/ext/js/language/dictionary-importer.js
index ad5d7a70..7a070b8d 100644
--- a/ext/js/language/dictionary-importer.js
+++ b/ext/js/language/dictionary-importer.js
@@ -587,10 +587,12 @@ class DictionaryImporter {
}
_normalizeTermOrReading(text) {
- try {
- return text.normalize('NFC');
- } catch (e) {
- return text;
- }
+ // Note: this function should not perform String.normalize on the text,
+ // as it will characters in an undesirable way.
+ // Thus, this function is currently a no-op.
+ // Example:
+ // - '\u9038'.normalize('NFC') => '\u9038' (逸)
+ // - '\ufa67'.normalize('NFC') => '\u9038' (逸 => 逸)
+ return text;
}
}