Skip to content

Commit

Permalink
Allow amounts with no integers
Browse files Browse the repository at this point in the history
  • Loading branch information
imDaniX committed Sep 7, 2023
1 parent 46d5f3d commit b311ce3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import static com.earth2me.essentials.I18n.tl;

public class Commandpay extends EssentialsLoopCommand {
private static final Pattern NUMBER_FORMAT = Pattern.compile("([0_]*[0-9][0-9_'`,]*(?:\\.[0-9]+)?)([kmbt])?");
private static final Pattern NUMBER_FORMAT = Pattern.compile("([0-9][0-9_'`,]*(?:\\.[0-9]+)?|\\.[0-9]+)([kmbt])?");
private static final Pattern SANITIZE = Pattern.compile("[^0-9.]");

private static final BigDecimal THOUSAND = new BigDecimal(1000);
Expand Down

0 comments on commit b311ce3

Please sign in to comment.