Skip to content

Commit

Permalink
Fixed space normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
rmraya committed Nov 25, 2023
1 parent a29c4d3 commit a940a7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion ts/XMLUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a940a7f

Please sign in to comment.