diff --git a/source_resolver.yaml b/source_resolver.yaml new file mode 100644 index 0000000..b0b7abb --- /dev/null +++ b/source_resolver.yaml @@ -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" \ No newline at end of file