Browse Source

Rename str to sentence

pull/2674/head
Manny Dinssa 2 years ago
parent
commit
2db61cce4c
  1. 6
      app/helpers/formatting_helper.rb

6
app/helpers/formatting_helper.rb

@ -5,9 +5,9 @@ module FormattingHelper
value.match?(/[[:punct:]]\z/) && !value.match?(/[(){}\[\]]\z/) ? value : "#{value}." value.match?(/[[:punct:]]\z/) && !value.match?(/[(){}\[\]]\z/) ? value : "#{value}."
end end
def downcase_first_letter(str) def downcase_first_letter(sentence)
return str if str.blank? return sentence if sentence.blank?
str[0].downcase + str[1..] sentence[0].downcase + sentence[1..]
end end
end end

Loading…
Cancel
Save