Allow url with extension .yml in gitlab processor

Signed-off-by: Dede Hamzah <dehamzah@gmail.com>
This commit is contained in:
Dede Hamzah
2021-09-21 14:01:53 +07:00
committed by Dede Hamzah
parent 64e3c8a228
commit 8acca63fa9
+1 -1
View File
@@ -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');
}