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

Commit d4453f9

Browse files
committed
Merge pull request #47 from danieljuhl/master
Do not handle the strings 'yes' and 'no' as boolean
2 parents f2ccbda + 8da4dcb commit d4453f9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/xml2json.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ function coerce(value) {
9696

9797
var _value = value.toLowerCase();
9898

99-
if (_value == 'true' || _value == 'yes') {
99+
if (_value == 'true') {
100100
return true;
101101
}
102102

103-
if (_value == 'false' || _value == 'no') {
103+
if (_value == 'false') {
104104
return false;
105105
}
106106

0 commit comments

Comments
 (0)