Skip to content

Commit 314d3af

Browse files
committed
[NRL-1922] Remove duplicate backslash in id validator regex
1 parent 757098b commit 314d3af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

layer/nrlf/core/dynamodb/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def validate_id(cls, id_: str) -> str:
199199
The id should be in the format <producer_id|producer_suffix>-<document_id>
200200
"""
201201
if not re.match(
202-
r"^(?=.{1,64}$)[A-Za-z0-9|\\.]+-[A-Za-z0-9]+[A-Za-z0-9\\_\\-]*$", id_
202+
r"^(?=.{1,64}$)[A-Za-z0-9|\\.]+-[A-Za-z0-9]+[A-Za-z0-9_\\-]*$", id_
203203
):
204204
raise ValueError("id must be in the format <producer_id>-<document_id>")
205205

0 commit comments

Comments
 (0)