Browse Source

fix: replace content next if blank

pull/313/head
yystopf 4 years ago
parent
commit
fe23c2afbf
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/helpers/repositories_helper.rb

+ 1
- 1
app/helpers/repositories_helper.rb View File

@@ -102,7 +102,7 @@ module RepositoriesHelper
begin
s_content = s[0]
# 链接直接跳过不做替换
next if s_content.starts_with?('http://') || s_content.starts_with?('https://') || s_content.starts_with?('mailto:')
next if s_content.starts_with?('http://') || s_content.starts_with?('https://') || s_content.starts_with?('mailto:') || s_content.blank?
ext = File.extname(s_content)[1..-1]
if image_type?(ext) || download_type(ext)


Loading…
Cancel
Save