Fix Diaspora::Camo.from_markdown with frozen strings
This commit is contained in:
parent
f2ab09db17
commit
79c2db65d7
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ module Diaspora
|
||||||
module Camo
|
module Camo
|
||||||
def self.from_markdown(markdown_text)
|
def self.from_markdown(markdown_text)
|
||||||
return unless markdown_text
|
return unless markdown_text
|
||||||
markdown_text.gsub!(/(!\[(.*?)\]\s?\([ \t]*()<?(\S+?)>?[ \t]*((['"])(.*?)\6[ \t]*)?\))/m) do |link|
|
markdown_text = markdown_text.gsub(/(!\[(.*?)\]\s?\([ \t]*()<?(\S+?)>?[ \t]*((['"])(.*?)\6[ \t]*)?\))/m) do |link|
|
||||||
link.gsub($4, self.image_url($4))
|
link.gsub($4, self.image_url($4))
|
||||||
end
|
end
|
||||||
markdown_text.gsub(/src=(['"])(.+?)\1/m) do |link|
|
markdown_text.gsub(/src=(['"])(.+?)\1/m) do |link|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue