ids_doc_generator - fix invalid escape sequence SyntaxWarning

SyntaxWarning: invalid escape sequence '\/' at line 312.
`\/` in a plain string is treated as `/` by accident; replaced with raw string r"..." to be explicit.
This commit is contained in:
Andrej730
2026-03-20 13:36:04 +05:00
parent c1a9708504
commit 77f0c43314
+1 -1
View File
@@ -310,7 +310,7 @@ spec = ifctester.ids.Specification(
)
specs.specifications.append(spec)
spec.applicability.append(ifctester.ids.Entity(name="IFCWALLTYPE"))
restriction = ifctester.ids.Restriction(options={"pattern": "(-|[0-9]{2,3})\/(-|[0-9]{2,3})\/(-|[0-9]{2,3})"})
restriction = ifctester.ids.Restriction(options={"pattern": r"(-|[0-9]{2,3})/(-|[0-9]{2,3})/(-|[0-9]{2,3})"})
spec.requirements.append(
ifctester.ids.Property(
propertySet="Pset_WallCommon",