mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
修复:split nil错误
This commit is contained in:
@@ -21,7 +21,7 @@ class Projects::VerifyAuthTokenService < ApplicationService
|
||||
private
|
||||
def regular_url
|
||||
regx = /\/\/[\s\S]*.git$/ #获取字串
|
||||
data = (regx.match @url).to_s[2..-5].split("/")
|
||||
data = (regx.match @url).to_s[2..-5].to_s.split("/")
|
||||
@website = data[0]
|
||||
@owner = data[1]
|
||||
@repo = data[2]
|
||||
|
||||
Reference in New Issue
Block a user