Permalink
Browse files

readouts for capitalization have correct cases

  • Loading branch information...
1 parent 229c184 commit 2ea9e22f20c6bf949aa9bc789821085085ef06a3 @jackkinsella committed Feb 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/style_scanner/sentence_scans/capitalization.rb
View
2 lib/style_scanner/sentence_scans/capitalization.rb
@@ -48,7 +48,7 @@ def flag_uppercase(collection)
def flag_lowercase(collection)
collection.each do |word|
- create_problem(word.upcase) if sentence.contains?(word, :strip_case => false)
+ create_problem(word.capitalize) if sentence.contains?(word, :strip_case => false)
end
end

0 comments on commit 2ea9e22

Please sign in to comment.