Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3c99b45

Browse files
committed
Revert "Add conversion of booleans and a test (bendrucker#3)"
This reverts commit 5c9a0d6.
1 parent ed26812 commit 3c99b45

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

index.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,7 @@ ArrayParser.prototype.newEntry = function (includeEmpty) {
4242
if (entry === 'NULL' && !includeEmpty) {
4343
entry = null
4444
}
45-
if (entry === 'true') {
46-
entry = true
47-
}
48-
if (entry === 'false') {
49-
entry = false
50-
}
51-
if (entry !== null && typeof entry !== 'boolean') entry = this.transform(entry)
45+
if (entry !== null) entry = this.transform(entry)
5246
this.entries.push(entry)
5347
this.recorded = []
5448
}

test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ test(function (t) {
1010
t.deepEqual(string('{""}'), [''], 'empty string')
1111
t.deepEqual(string('{1,2,3}'), ['1', '2', '3'], 'numerics')
1212
t.deepEqual(string('{a,b,c}'), ['a', 'b', 'c'], 'strings')
13-
t.deepEqual(string('{true,false,true}'), [true, false, true], 'booleans')
1413
t.deepEqual(string('{"\\"\\"\\"","\\\\\\\\\\\\"}'), ['"""', '\\\\\\'], 'escaped')
1514
t.deepEqual(string('{NULL,NULL}'), [null, null], 'null')
1615

0 commit comments

Comments
 (0)