mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
Code beautification per @zmagod's request
Closes SCI-1321.
This commit is contained in:
parent
8c7aebbb88
commit
f298ec54e7
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue