Merge pull request #2060 from ONLYOFFICE/fix/fix-bugs

[DE PE] Fix bug 59627
This commit is contained in:
Julia Radzhabova 2022-11-16 17:21:12 +03:00 committed by GitHub
commit 91ed3cea44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -124,7 +124,7 @@ define([
for (var l = 0; l < text.length; l++) { for (var l = 0; l < text.length; l++) {
var charCode = text.charCodeAt(l), var charCode = text.charCodeAt(l),
char = text.charAt(l); char = text.charAt(l);
if (AscCommon.g_aPunctuation[charCode] !== undefined || char.trim() === '') { if (AscCommon.IsPunctuation(charCode) !== undefined || char.trim() === '') {
isPunctuation = true; isPunctuation = true;
break; break;
} }

View file

@ -138,7 +138,7 @@ define([
for (var l = 0; l < text.length; l++) { for (var l = 0; l < text.length; l++) {
var charCode = text.charCodeAt(l), var charCode = text.charCodeAt(l),
char = text.charAt(l); char = text.charAt(l);
if (AscCommon.g_aPunctuation[charCode] !== undefined || char.trim() === '') { if (AscCommon.IsPunctuation(charCode) !== undefined || char.trim() === '') {
isPunctuation = true; isPunctuation = true;
break; break;
} }