Skip to content

Commit b07c79a

Browse files
committed
Allow '-' character in logics
1 parent 929402c commit b07c79a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/jamplate/parser/LogicParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public class LogicParser implements PollParser<Logic> {
5252
*
5353
* @since 0.0.1 ~2020.09.19
5454
*/
55-
protected final Pattern PATTERN_REFERENCE = Pattern.compile("(\\w|\\d)+");
55+
protected final Pattern PATTERN_REFERENCE = Pattern.compile("(-|\\w|\\d)+");
5656
/**
5757
* A pattern that detects whitespaces or any places that could be a whitespace. The pattern
5858
* should be used after clearing:

0 commit comments

Comments
 (0)