From 8e2793a46280dcc0839ddc88ff324263fae79237 Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Wed, 16 Nov 2022 17:09:59 +0300 Subject: [PATCH] [DE PE] Fix bug 59627 --- apps/documenteditor/main/app/controller/Search.js | 2 +- apps/presentationeditor/main/app/controller/Search.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Search.js b/apps/documenteditor/main/app/controller/Search.js index aa35b2b1b..47c16acd6 100644 --- a/apps/documenteditor/main/app/controller/Search.js +++ b/apps/documenteditor/main/app/controller/Search.js @@ -124,7 +124,7 @@ define([ for (var l = 0; l < text.length; l++) { var charCode = text.charCodeAt(l), char = text.charAt(l); - if (AscCommon.g_aPunctuation[charCode] !== undefined || char.trim() === '') { + if (AscCommon.IsPunctuation(charCode) !== undefined || char.trim() === '') { isPunctuation = true; break; } diff --git a/apps/presentationeditor/main/app/controller/Search.js b/apps/presentationeditor/main/app/controller/Search.js index 5ef890f18..bc4ca16a4 100644 --- a/apps/presentationeditor/main/app/controller/Search.js +++ b/apps/presentationeditor/main/app/controller/Search.js @@ -138,7 +138,7 @@ define([ for (var l = 0; l < text.length; l++) { var charCode = text.charCodeAt(l), char = text.charAt(l); - if (AscCommon.g_aPunctuation[charCode] !== undefined || char.trim() === '') { + if (AscCommon.IsPunctuation(charCode) !== undefined || char.trim() === '') { isPunctuation = true; break; }