[DE PE] Fix bug 59023

This commit is contained in:
JuliaSvinareva 2022-12-15 12:38:17 +03:00
parent 9186805225
commit c75ef98444
2 changed files with 2 additions and 2 deletions

View file

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

View file

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