Code beautification per @zmagod's request

Closes SCI-1321.
This commit is contained in:
Luka Murn 2017-06-06 07:58:46 +02:00
parent 8c7aebbb88
commit f298ec54e7

View file

@ -18,7 +18,7 @@ module TinyMceHelper
end
def generate_image_tag_from_token(text)
return nil if text.nil?
return unless text
regex = /\[~tiny_mce_id:([0-9a-zA-Z]+)\]/
text.gsub(regex) do |el|
match = el.match(regex)