Skip to content

Commit 572dcdb

Browse files
author
Bob Strahan
committed
Fix regex pattern to escape pipe character in section_type sanitization
1 parent 9091822 commit 572dcdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/idp_common_pkg/idp_common/reporting/save_reporting_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,7 @@ def save_document_sections(self, document: Document) -> Optional[Dict[str, Any]]
12451245
)
12461246
# Escape section_type to make it filesystem-safe and lowercase for consistency
12471247
escaped_section_type = re.sub(
1248-
r"[/\\:*?\"<>|]", "_", section_type.lower()
1248+
r"[/\\:*?\"<>|-]", "_", section_type.lower()
12491249
)
12501250

12511251
s3_key = (

0 commit comments

Comments
 (0)