Skip to content

Commit

Permalink
Merge pull request #9557 from bonsaiben/useless_gsub
Browse files Browse the repository at this point in the history
Change useless gsub to delete
  • Loading branch information
carlosantoniodasilva committed Mar 5, 2013
2 parents 57c516f + c614711 commit ee44469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_view/helpers/form_tag_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ def form_tag_in_block(html_options, &block)

# see http://www.w3.org/TR/html4/types.html#type-name
def sanitize_to_id(name)
name.to_s.gsub(']','').gsub(/[^-a-zA-Z0-9:.]/, "_")
name.to_s.delete(']').gsub(/[^-a-zA-Z0-9:.]/, "_")
end
end
end
Expand Down

0 comments on commit ee44469

Please sign in to comment.