String split in as_a_or_s.

master
Luka Vandervelden 2019-08-10 22:08:45 +02:00
parent 51f02e08d5
commit 79ef66292b
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class Specs
def as_a_or_s : Array(String)
# FIXME: We should probably be splitting the string around comas.
[@value]
@value.split(",").map(&.gsub /(^ *| *$)/, "")
end
def as_s_or_ls : String