diff --git a/app/models/topic_embed.rb b/app/models/topic_embed.rb index a1ea9f5a0..96a06397d 100644 --- a/app/models/topic_embed.rb +++ b/app/models/topic_embed.rb @@ -6,7 +6,7 @@ class TopicEmbed < ActiveRecord::Base validates_presence_of :embed_url def self.normalize_url(url) - url.downcase.sub(/\/$/, '').sub(/\-+/, '-') + url.downcase.sub(/\/$/, '').sub(/\-+/, '-').strip end def self.imported_from_html(url)