mirror of
https://github.com/packwiz/packwiz.git
synced 2025-04-19 21:16:30 +02:00
Apparently curseforge allows underscores in slugs
This commit is contained in:
parent
0c94ea9c7c
commit
148b88474e
@ -67,7 +67,7 @@ var modSlugRegexes = [...]*regexp.Regexp{
|
||||
regexp.MustCompile("^https?:\\/\\/minecraft\\.curseforge\\.com\\/projects\\/([^\\/]+)"),
|
||||
regexp.MustCompile("^https?:\\/\\/(?:www\\.)?curseforge\\.com\\/minecraft\\/mc-mods\\/([^\\/]+)"),
|
||||
// Exact slug matcher
|
||||
regexp.MustCompile("^[a-z][\\da-z\\-]{0,127}$"),
|
||||
regexp.MustCompile("^[a-z][\\da-z\\-_]{0,127}$"),
|
||||
}
|
||||
|
||||
func getModIDFromString(mod string) (bool, int, error) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user