Add source_resolver.yaml
This commit is contained in:
11
source_resolver.yaml
Normal file
11
source_resolver.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
github_gist:
|
||||||
|
regexp: ^https://gist\.github\.com/([^/]+)/([a-f0-9]+)(?:/([a-f0-9]+))?$
|
||||||
|
url: "https://gist.githubusercontent.com/{user}/{gist_id}/raw"
|
||||||
|
|
||||||
|
gitlab_snippet:
|
||||||
|
regexp: ^https://gitlab\.com/(-)?snippets/([0-9]+)$
|
||||||
|
url: "https://gitlab.com/snippets/{snippet_id}/raw"
|
||||||
|
|
||||||
|
gitea_snippet:
|
||||||
|
regexp: ^https://([^/]+)/snippets/([0-9]+)$
|
||||||
|
url: "https://{host}/snippets/{snippet_id}/raw"
|
||||||
Reference in New Issue
Block a user