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

Commit f96b3f4

Browse files
committed
escape: does not apply to delimiter
1 parent 917cc89 commit f96b3f4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/option.escape.coffee

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@ describe 'Option `escape`', ->
6767
]
6868
next()
6969

70+
it 'does not apply to delimiter', (next) ->
71+
parse '''
72+
aa\\,bb
73+
''', escape: '\\', (err, data) ->
74+
return next err if err
75+
data.should.eql [
76+
[ 'aa\\','bb' ]
77+
]
78+
next()
79+
7080
it 'handle non continuous chunks', (next) ->
7181
data = []
7282
parser = parse escape: '\\'

0 commit comments

Comments
 (0)