Skip to content

Commit

Permalink
Fix titleize_tr method
Browse files Browse the repository at this point in the history
  • Loading branch information
huseyin committed Sep 25, 2018
1 parent 1b0527a commit 4ad4fad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/support/support/core_ext/string.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def capitalize_tr
end

def titleize_tr
downcase_tr.gsub(/\b(?<!\w['’`])[a-zçğöşü]/, &:capitalize_tr)
strip.downcase_tr.gsub(/\b(?<!\w['’`])[a-zçğıöşü]/, &:capitalize_tr)
end

def downcase_tr
Expand Down

0 comments on commit 4ad4fad

Please sign in to comment.