Fix new linter errors

This commit is contained in:
Alex Ling
2021-03-12 15:03:12 +00:00
parent daec2bdac6
commit ee52c52f46
16 changed files with 46 additions and 54 deletions

View File

@@ -11,7 +11,7 @@ end
def split_by_alphanumeric(str)
arr = [] of String
str.scan(/([^\d\n\r]*)(\d*)([^\d\n\r]*)/) do |match|
arr += match.captures.select { |s| s != "" }
arr += match.captures.select &.!= ""
end
arr
end