mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2026-06-10 15:37:28 +00:00
fix: Groovy 正则改为字符串形式避免斜杠解析问题
This commit is contained in:
@@ -144,7 +144,7 @@
|
||||
<scripts>
|
||||
<script>
|
||||
def url = 'git remote get-url origin'.execute().text.trim()
|
||||
def m = url =~ /github\.com[:/]([^/]+)\/([^/.]+?)(?:\.git)?$/
|
||||
def m = (url =~ 'github\\.com[:/]([^/]+)/([^/.]+?)(?:\\.git)?$')
|
||||
if (m.find()) {
|
||||
project.properties.setProperty('github.owner', m.group(1))
|
||||
project.properties.setProperty('github.repo', m.group(2))
|
||||
|
||||
Reference in New Issue
Block a user