Skip to content

Commit

Permalink
Group from regex matcher instead
Browse files Browse the repository at this point in the history
DSH105 committed Aug 5, 2014
1 parent d315da9 commit 17be57e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/dsh105/command/VariableMatcher.java
Original file line number Diff line number Diff line change
@@ -62,7 +62,7 @@ protected String buildVariableSyntax() {
if (regexMatcher.matches()) {
String regex = regexMatcher.group(1);
String name = regexMatcher.group(2);
variable = new Variable(syntaxMatcher.group(0), regex, name == null ? regex : name.replace("...", ""), range);
variable = new Variable(regexMatcher.group(0), regex, name == null ? regex : name.replace("...", ""), range);
} else {
variable = new Variable(syntaxMatcher.group(0), syntaxMatcher.group(2).replace("...", ""), range);
}

0 comments on commit 17be57e

Please sign in to comment.