Skip to content

Commit 23a9656

Browse files
added hiphen in subdocpath (#216)
* added hiphen in subdocpath * changes
1 parent 0723c9d commit 23a9656

File tree

1 file changed

+1
-1
lines changed
  • document-store/src/main/java/org/hypertrace/core/documentstore/model/subdoc

1 file changed

+1
-1
lines changed

document-store/src/main/java/org/hypertrace/core/documentstore/model/subdoc/SubDocument.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class SubDocument {
1919

2020
private static final Set<String> IMPLICIT_PATHS = Set.of(CREATED_TIME, LAST_UPDATED_TIME);
2121
private static final Pattern ALLOWED_CHARACTERS =
22-
Pattern.compile("^[a-zA-Z0-9_]+(.[a-zA-Z0-9_]+)*$");
22+
Pattern.compile("^[a-zA-Z0-9_-]+(.[a-zA-Z0-9_-]+)*$");
2323

2424
String path;
2525

0 commit comments

Comments
 (0)