diff --git a/package.json b/package.json index cfa182b..cc3c6e8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "typesxml", "productName": "TypesXML", - "version": "1.2.0", + "version": "1.2.1", "description": "Open source XML library written in TypeScript", "scripts": { "build": "tsc" diff --git a/ts/XMLUtils.ts b/ts/XMLUtils.ts index 01b8302..14828e4 100644 --- a/ts/XMLUtils.ts +++ b/ts/XMLUtils.ts @@ -34,7 +34,7 @@ export class XMLUtils { } static normalizeSpaces(text: string): string { - return text.replace(/[\r\n\t]/s, ' '); + return text.replace(/\s+/g, ' '); } static replaceAll(text: string, search: string, replacement: string): string {