Allow url with extension .yml in gitlab processor
Signed-off-by: Dede Hamzah <dehamzah@gmail.com>
This commit is contained in:
@@ -76,7 +76,7 @@ export function buildRawUrl(target: string): URL {
|
||||
userOrOrg === '' ||
|
||||
repoName === '' ||
|
||||
blobKeyword !== 'blob' ||
|
||||
!restOfPath.join('/').match(/\.yaml$/)
|
||||
!restOfPath.join('/').match(/\.(yaml|yml)$/)
|
||||
) {
|
||||
throw new Error('Wrong GitLab URL');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user