Skip to content

Commit

Permalink
add 'translation' for + to plus
Browse files Browse the repository at this point in the history
  • Loading branch information
sarcilav committed Jun 22, 2011
1 parent ebe7b63 commit 64dc828
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/lucky_sneaks/string_extensions.rb
Expand Up @@ -154,7 +154,8 @@ def convert_misc_characters
/\s*\*\s*/ => "star",
/\s*%\s*/ => "percent",
/\s*(\\|\/)\s*/ => "slash",
/(\s*=\s*)/ => " equals "
/(\s*=\s*)/ => " equals ",
/\s*\+\s*/ => "plus"
}.each do |found, replaced|
replaced = " #{replaced} " unless replaced =~ /\\1/
dummy.gsub!(found, replaced)
Expand Down

0 comments on commit 64dc828

Please sign in to comment.