Skip to content

Commit f82ac95

Browse files
committed
try to avoid examples being run by Travis
1 parent 06700eb commit f82ac95

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

functions/strings/str_getcsv.js

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@ function str_getcsv(input, delimiter, enclosure, escape) {
66
// example 2: str_getcsv('"row2""cell1","row2cell2","row2cell3"', null, null, '"');
77
// returns 2: ['row2"cell1', 'row2cell2', 'row2cell3']
88
/*
9-
// These test cases allowing for missing delimters are not currently supported
10-
example 3: str_getcsv('"row2""cell1",row2cell2,row2cell3', null, null, '"');
11-
returns 3: ['row2"cell1', 'row2cell2', 'row2cell3']
12-
example 4: str_getcsv('row1cell1,"row1,cell2",row1cell3', null, null, '"');
13-
returns 4: ['row1cell1', 'row1,cell2', 'row1cell3']
14-
example 5: str_getcsv('"row2""cell1",row2cell2,"row2""""cell3"'
15-
returns 5: ['row2"cell1', 'row2cell2', 'row2""cell3']
16-
example 6: str_getcsv('row1cell1,"row1,cell2","row1"",""cell3"', null, null, '"');
17-
returns 6: ['row1cell1', 'row1,cell2', 'row1","cell3'];
9+
// 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']
12+
13+
str_getcsv('row1cell1,"row1,cell2",row1cell3', null, null, '"');
14+
['row1cell1', 'row1,cell2', 'row1cell3']
15+
16+
str_getcsv('"row2""cell1",row2cell2,"row2""""cell3"'
17+
['row2"cell1', 'row2cell2', 'row2""cell3']
18+
19+
str_getcsv('row1cell1,"row1,cell2","row1"",""cell3"', null, null, '"');
20+
['row1cell1', 'row1,cell2', 'row1","cell3'];
21+
1822
Should also test newlines within
1923
*/
2024
var i, inpLen, output = [];

0 commit comments

Comments
 (0)