Add source_resolver.yaml

This commit is contained in:
2025-01-18 23:34:27 +00:00
parent a8b0e764fe
commit de3071a0b9

11
source_resolver.yaml Normal file
View 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"