Browse Source

readme中变量图片相对路径 log error

pull/338/head
xxq250 2 years ago
parent
commit
9e0404b24e
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

@@ -121,7 +121,7 @@ module RepositoriesHelper
s_regex = /```([\s\S]*?)```[\s]?/
s_regex_1 = /\[.*?\]\((.*?)\)/
# 变量图片相对路径
s_regex_2 = /\[.*?\]:(.*?)\r\n/
s_regex_2 = /\[.*?\]:(.*?)\n/
src_regex = /src=\"(.*?)\"/
src_regex_1 = /src=\'(.*?)\'/
ss_c = content.to_s.scan(s_regex_c)


Loading…
Cancel
Save