You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
eznet-cli/modules/record_helpers.cr

8 lines
204 B
Crystal

module RecordHelpers
def self.clean_record(record : String) : Array(String)
tokenized_record = record.split(" ")
tokenized_record = tokenized_record.reject { |s| s == "" }
tokenized_record
end
end