Split on empty sep: fix #552 moar

This commit is contained in:
Nicolas Williams committed 2015-01-14 01:32:11 -06:00
1 parent d630597e87
commit 8b5ff40402
2 files changed
+18 -8

No files matched your search

+4
View File
@@ -900,6 +900,10 @@ sub("^(?<head>.)"; "Head=\(.head) Tail=")
["a,b, c, d, e,f",", a,b, c, d, e,f, "]
[["a,b","c","d","e,f"],["","a,b","c","d","e,f",""]]
split("")
"abc"
["a","b","c"]
########################
[.[]|[[sub(", *";":")], [gsub(", *";":")], [scan(", *")]]]
["a,b, c, d, e,f",", a,b, c, d, e,f, "]