Skip to content

Commit

Permalink
fix negative number parsing for positions
Browse files Browse the repository at this point in the history
  • Loading branch information
Machine-Maker committed Mar 22, 2022
1 parent 9403962 commit 8215f7d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@ public String toString() {
}

static final class Tokens {
static final Pattern LOCAL_PATTERN = Pattern.compile("^\\^(\\d+(\\.\\d+)?) \\^(\\d+(\\.\\d+)?) \\^(\\d+(\\.\\d+)?)$");
static final Pattern WORLD_PATTERN = Pattern.compile("^(~?)(\\d+) (~?)(\\d+) (~?)(\\d+)$");
static final Pattern LOCAL_PATTERN = Pattern.compile("^\\^(-?\\d+(\\.\\d+)?) \\^(-?\\d+(\\.\\d+)?) \\^(-?\\d+(\\.\\d+)?)$");
static final Pattern WORLD_PATTERN = Pattern.compile("^(~?)(-?\\d+) (~?)(-?\\d+) (~?)(-?\\d+)$");

static final String LOCAL_SYMBOL = "^";
static final String RELATIVE_SYMBOL = "~";
Expand Down

0 comments on commit 8215f7d

Please sign in to comment.