Skip to content

Commit 22cd832

Browse files
committed
fix(core): support underscores in group names
1 parent 401fece commit 22cd832

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sift-core/src/main/java/com/mirkoddd/sift/core/GroupName.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* ensuring that any instantiated GroupName perfectly complies with regex syntax rules.
2626
*/
2727
final class GroupName {
28-
private static final String VALID_NAME_PATTERN = "^[a-zA-Z][a-zA-Z0-9]*$";
28+
private static final String VALID_NAME_PATTERN = "^[a-zA-Z][a-zA-Z0-9_]*$";
2929

3030
private static final Pattern VALIDATOR = Pattern.compile(VALID_NAME_PATTERN);
3131

0 commit comments

Comments
 (0)