Skip to content

Commit

Permalink
forego empty splits
Browse files Browse the repository at this point in the history
  • Loading branch information
acxz committed Jun 15, 2024
1 parent d508463 commit 402fd75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stringcases.jl
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ struct PatternStringCase{
end

function split(s::AbstractString, dsc::DelimiterStringCase)
return Base.split(s, dsc.dlm)
return Base.split(s, dsc.dlm, keepempty=false)
end

# when string case is split on patterns
Expand Down

0 comments on commit 402fd75

Please sign in to comment.