Skip to content

Commit

Permalink
Merge pull request #438 from nolta/string2
Browse files Browse the repository at this point in the history
make split(x) split on all ASCII whitespace chars
  • Loading branch information
JeffBezanson committed Feb 22, 2012
2 parents c428171 + 8fc40c4 commit a099c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion j/string.j
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ function split(s::String, delims, include_empty::Bool)
strs
end

split(s::String) = split(s, " ", false)
split(s::String) = split(s, (' ','\t','\n','\v','\f','\r'), false)
split(s::String, x) = split(s, x, true)
split(s::String, x::Char, incl::Bool) = split(s, (x,), incl)

Expand Down

0 comments on commit a099c12

Please sign in to comment.