From 419527efaa538b0eeed0bf6f6f94ea3deba93cb5 Mon Sep 17 00:00:00 2001 From: Phoenix616 Date: Sat, 29 Jan 2022 22:23:51 +0100 Subject: [PATCH] Fix item id not being valid with numbers and underscore (Fixes #498) --- src/main/java/com/Acrobot/ChestShop/Signs/ChestShopSign.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/Acrobot/ChestShop/Signs/ChestShopSign.java b/src/main/java/com/Acrobot/ChestShop/Signs/ChestShopSign.java index 99862b8..e4f0db0 100644 --- a/src/main/java/com/Acrobot/ChestShop/Signs/ChestShopSign.java +++ b/src/main/java/com/Acrobot/ChestShop/Signs/ChestShopSign.java @@ -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 = "?";