mirror of
https://github.com/packwiz/packwiz.git
synced 2025-04-20 05:26: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?:\\/\\/minecraft\\.curseforge\\.com\\/projects\\/([^\\/]+)"),
|
||||||
regexp.MustCompile("^https?:\\/\\/(?:www\\.)?curseforge\\.com\\/minecraft\\/mc-mods\\/([^\\/]+)"),
|
regexp.MustCompile("^https?:\\/\\/(?:www\\.)?curseforge\\.com\\/minecraft\\/mc-mods\\/([^\\/]+)"),
|
||||||
// Exact slug matcher
|
// 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) {
|
func getModIDFromString(mod string) (bool, int, error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user