From 7c12614b8a982578f1e98a29d35ba300eb229681 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 29 Apr 2021 16:16:32 +0200 Subject: [PATCH] Change string normalization used by CodeMirror search. --- src/redakcja/static/js/lib/codemirror-5.49.0/searchcursor.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 } -- 2.20.1