Skip to content
This repository was archived by the owner on Jan 7, 2021. It is now read-only.

Commit 17c637a

Browse files
committed
Merge branch 'master' into 0.2
2 parents 4c8dc5c + 9d1bd01 commit 17c637a

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

lib/xml2json.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function text(data) {
3939
if (!data.length) {
4040
return;
4141
}
42-
currentObject['$t'] = data;
42+
currentObject['$t'] = (currentObject['$t'] || "") + data;
4343
}
4444

4545
function endElement(name) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"version": "0.2.2",
33
"author": "Andrew Turley",
44
"email": "aturley@buglabs.net",
5-
"description" : "Converts xml to json using node-expat.",
5+
"description" : "Converts xml to json and viceverza, using node-expat.",
66
"repository": "git://github.com/buglabs/node-xml2json.git",
77
"main": "index",
88
"contributors":[ {"name": "Camilo Aguilar", "email": "camilo@buglabs.net"}],

0 commit comments

Comments
 (0)