diff --git a/common/src/util/saxy.ts b/common/src/util/saxy.ts index b49422c01e..c055cc3e07 100644 --- a/common/src/util/saxy.ts +++ b/common/src/util/saxy.ts @@ -163,7 +163,7 @@ const parseEntities = (input: string): string => { value = parseInt(entityName.slice(1), 10) } - if (isNaN(value)) { + if (Number.isNaN(value)) { parts.push('&' + entityName + ';') } else { parts.push(String.fromCharCode(value))