github 存储库名称中特殊字符的规则?

Rules for special characters in github repository name?

除了 -_ 之外,github 存储库名称中还可以包含哪些其他特殊字符?

背景

我需要在 github url 上做一些正则表达式,并且需要知道存储库根 url 的规则,其形式为

https://github.com/username/repo

哪里

到目前为止,我的正则表达式运行良好,但不适合具有特殊字符的存储库,因此我必须包含它们。用R写的,正则表达式是github.com/*/[[:alpha:]].

注意:这里列出了 rules for github usernames - 我在做同样的事情,但对于存储库名称

moby/moby issue 679所述:

it looks like github allows [A-Za-z0-9_.-], and transforms all other characters to "-".

因此:除了字母、数字、-_ 之外,唯一允许的其他字符是 '.'

这在 GitHub 桌面应用程序中有说明,desktop/desktop issue 3090:"Block emoji from being entered as a repo name"(!)