Skip to content

Commit 975707a

Browse files
committed
Try again for travis
1 parent f82ac95 commit 975707a

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

functions/strings/str_getcsv.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,22 @@ function str_getcsv(input, delimiter, enclosure, escape) {
55
// returns 1: ['abc', 'def', 'ghi']
66
// example 2: str_getcsv('"row2""cell1","row2cell2","row2cell3"', null, null, '"');
77
// returns 2: ['row2"cell1', 'row2cell2', 'row2cell3']
8-
/*
8+
99
// These test cases allowing for missing delimiters are not currently supported
10-
str_getcsv('"row2""cell1",row2cell2,row2cell3', null, null, '"');
11-
['row2"cell1', 'row2cell2', 'row2cell3']
10+
/*
11+
str_getcsv('"row2""cell1",row2cell2,row2cell3', null, null, '"');
12+
['row2"cell1', 'row2cell2', 'row2cell3']
1213
13-
str_getcsv('row1cell1,"row1,cell2",row1cell3', null, null, '"');
14-
['row1cell1', 'row1,cell2', 'row1cell3']
14+
str_getcsv('row1cell1,"row1,cell2",row1cell3', null, null, '"');
15+
['row1cell1', 'row1,cell2', 'row1cell3']
1516
16-
str_getcsv('"row2""cell1",row2cell2,"row2""""cell3"'
17-
['row2"cell1', 'row2cell2', 'row2""cell3']
17+
str_getcsv('"row2""cell1",row2cell2,"row2""""cell3"'
18+
['row2"cell1', 'row2cell2', 'row2""cell3']
1819
19-
str_getcsv('row1cell1,"row1,cell2","row1"",""cell3"', null, null, '"');
20-
['row1cell1', 'row1,cell2', 'row1","cell3'];
20+
// str_getcsv('row1cell1,"row1,cell2","row1"",""cell3"', null, null, '"');
21+
['row1cell1', 'row1,cell2', 'row1","cell3'];
2122
22-
Should also test newlines within
23+
Should also test newlines within
2324
*/
2425
var i, inpLen, output = [];
2526
var backwards = function(str) { // We need to go backwards to simulate negative look-behind (don't split on

0 commit comments

Comments
 (0)