github: also exclude -dev-preshadow.jar assets by default

seems common among GTNewHorizons projects, which is the primary target (for me personally)

Signed-off-by: unilock <unilock@fennet.rentals>
This commit is contained in:
unilock 2024-04-16 07:16:41 -04:00
parent 7207d4c6a4
commit 4853d807e1

View File

@ -43,10 +43,11 @@ var installCmd = &cobra.Command{
// The default will match any asset with a name that does *not* end with:
// - "-api.jar"
// - "-dev.jar"
// - "-dev-preshadow.jar"
// - "-sources.jar"
// In most cases, this will only match one asset.
// TODO: Hopefully.
regex := `^.+(?<!-api|-dev|-sources)\.jar$`
regex := `^.+(?<!-api|-dev|-dev-preshadow|-sources)\.jar$`
// Check if the argument is a valid GitHub repository URL; if so, extract the slug from the URL.
// Otherwise, interpret the argument as a slug directly.