From 59059753d7aebe5cc17e444bced42750fac39591 Mon Sep 17 00:00:00 2001 From: yonadavGit Date: Sun, 4 Aug 2024 15:35:07 +0300 Subject: [PATCH] =?UTF-8?q?fix(new=20editor):=20add=20=E2=80=99=20to=20div?= =?UTF-8?q?ine=20name=20recognition=20regex?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/Editor.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/static/js/Editor.jsx b/static/js/Editor.jsx index 3a8c4b5a21..cd7a7ec624 100644 --- a/static/js/Editor.jsx +++ b/static/js/Editor.jsx @@ -336,15 +336,15 @@ export const serialize = (content) => { const replaceDivineNames = (str, divineName) => { // Regexes for identifying divine names with or without nikkud / trop // Currently ignores אֵל & צְבָאוֹת & שדי - const divineRE = /([\s.,\u05BE;:'"\-]|^)([ו]?[\u0591-\u05C7]*[משהוכלב]?[\u0591-\u05C7]*)(י[\u0591-\u05C7]*ה[\u0591-\u05C7]*ו[\u0591-\u05C7]*ה[\u0591-\u05C2\u05C4-\u05C7]*|יְיָ|יי|יקוק|ה\'|ה׳)(?=[/(/[