Skip to content

Commit

Permalink
Switched from chars to scan
Browse files Browse the repository at this point in the history
  • Loading branch information
ckhrysze committed Jan 22, 2010
1 parent f2b56d6 commit 1055205
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/models/deck.rb
Expand Up @@ -59,10 +59,7 @@ def cmc_values
def colors
result = maindeck.runs.map do |run|
next if run.cc.blank?
letters = run.cc.downcase.chars.select { |c|
Rails.logger.info("considering letter #{c}")
/[a-z]/.match(c)
}
letters = run.cc.downcase.scan(/[a-z]/)
Rails.logger.info("letters for card #{letters}")
letters
end
Expand Down

0 comments on commit 1055205

Please sign in to comment.