Fix item id not being valid with numbers and underscore (Fixes #498)

This commit is contained in:
Phoenix616 2022-01-29 22:23:51 +01:00
parent 99a609b423
commit 419527efaa
No known key found for this signature in database
GPG Key ID: 40E2321E71738EB0

View File

@ -45,7 +45,7 @@ public class ChestShopSign {
Pattern.compile("(?i)^(((\\d*([.e]\\d+)?)|free) *[BS]) *: *(((\\d*([.e]\\d+)?)|free) *[BS])$"),
Pattern.compile("(?i)^([BS] *((\\d*([.e]\\d+)?)|free)) *: *(((\\d*([.e]\\d+)?)|free) *[BS])$"),
},
{ Pattern.compile("^[\\p{L}? #:\\-]+$") }
{ Pattern.compile("^[\\p{L}\\d_? #:\\-]+$") }
};
public static final String AUTOFILL_CODE = "?";