Skip to content
This repository was archived by the owner on Jul 21, 2021. It is now read-only.

Commit ccad946

Browse files
authored
Merge pull request #1 from supermomonga/fix-git-repo-id-regexp
Fix to allow some special characters for repo-id
2 parents 8da4bec + 709fc65 commit ccad946

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/release.lisp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,14 @@
133133
(domain (quri:uri-domain uri)))
134134
(cond
135135
((string= domain "github.com")
136-
(let ((repos-id (ppcre:scan-to-strings "/[^/]+/[^/\\.]+" (quri:uri-path uri))))
136+
(let ((repos-id (ppcre:scan-to-strings "/[^/]+/[a-zA-Z0-9-_.]+" (quri:uri-path uri))))
137137
(concatenate 'string
138138
"https://github.com"
139139
repos-id)))
140140
((string= domain "bitbucket.org")
141141
source-url)
142142
((string= domain "gitlab.common-lisp.net")
143-
(let ((repos-id (ppcre:scan-to-strings "/[^/]+/[^/\\.]+" (quri:uri-path uri))))
143+
(let ((repos-id (ppcre:scan-to-strings "/[^/]+/[a-zA-Z0-9-_.]+" (quri:uri-path uri))))
144144
(concatenate 'string
145145
"http://gitlab.common-lisp.net"
146146
repos-id))))))))

0 commit comments

Comments
 (0)