Apply suggestions from code review of branch 523-improve-validation-checks

Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
This commit is contained in:
Beth Probert 2026-03-07 18:17:43 +00:00
parent 2395234322
commit 14b3e5a627

View file

@ -201,7 +201,8 @@ def _sanitise_reserved(name: str, is_filename: bool = True) -> str:
:param name: The component to check.
:param is_filename: Whether the component is a filename.
If True, names will be forced into lowercase.
If True, names will be forced into lowercase.
:returns: The sanitised component, in lower case.
"""
# Check for Windows reserved names.