Skip to content

Commit

Permalink
Bring ogStr back with a new name
Browse files Browse the repository at this point in the history
  • Loading branch information
imDaniX committed Sep 12, 2023
1 parent b311ce3 commit 87a75c4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ public void run(final Server server, final User user, final String commandLabel,
throw new NotEnoughArgumentsException();
}

if (args[1].startsWith("-")) {
final String amountStr = args[1];
if (amountStr.startsWith("-")) {
throw new Exception(tl("payMustBePositive"));
}

final Matcher formatMatcher = NUMBER_FORMAT.matcher(args[1]);
final Matcher formatMatcher = NUMBER_FORMAT.matcher(amountStr);
if (!formatMatcher.matches()) {
throw new Exception(tl("numberRequired"));
}
Expand Down

0 comments on commit 87a75c4

Please sign in to comment.