mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
sub suffices here
This commit is contained in:
@@ -363,7 +363,7 @@ module ActionView
|
||||
end
|
||||
|
||||
def image_alt(src)
|
||||
File.basename(src, '.*').gsub(/-[[:xdigit:]]{32}\z/, '').capitalize
|
||||
File.basename(src, '.*').sub(/-[[:xdigit:]]{32}\z/, '').capitalize
|
||||
end
|
||||
|
||||
# Returns an html video tag for the +sources+. If +sources+ is a string,
|
||||
|
||||
Reference in New Issue
Block a user