From: Radek Czajka Date: Thu, 29 Apr 2021 14:16:32 +0000 (+0200) Subject: Change string normalization used by CodeMirror search. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/7c12614b8a982578f1e98a29d35ba300eb229681 Change string normalization used by CodeMirror search. --- diff --git a/src/redakcja/static/js/lib/codemirror-5.49.0/searchcursor.js b/src/redakcja/static/js/lib/codemirror-5.49.0/searchcursor.js index aae36dfe..4c8c468f 100644 --- a/src/redakcja/static/js/lib/codemirror-5.49.0/searchcursor.js +++ b/src/redakcja/static/js/lib/codemirror-5.49.0/searchcursor.js @@ -121,8 +121,9 @@ var doFold, noFold if (String.prototype.normalize) { - doFold = function(str) { return str.normalize("NFD").toLowerCase() } - noFold = function(str) { return str.normalize("NFD") } + /* FNP: NFD changed to NFC, because of https://github.com/codemirror/CodeMirror/issues/6672 */ + doFold = function(str) { return str.normalize("NFC").toLowerCase() } + noFold = function(str) { return str.normalize("NFC") } } else { doFold = function(str) { return str.toLowerCase() } noFold = function(str) { return str }