mirror of
https://github.com/packwiz/packwiz.git
synced 2025-04-18 20:46:30 +02:00
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:
parent
7207d4c6a4
commit
4853d807e1
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user