Merge branch 'standalone_develop' into pre_trustie_server

This commit is contained in:
2024-09-20 17:21:16 +08:00
3 changed files with 25 additions and 1 deletions

View File

@@ -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]