Skip to content

Commit

Permalink
Updated XYNPoint validation rules
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-vd-aardweg committed Apr 17, 2023
1 parent 9dc3558 commit aaf5bf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hydrolib/core/dflowfm/xyn/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def _validate_name(cls, value):
if str_is_empty_or_none(value):
raise ValueError("Name cannot be empty.")

if "'" in value:
if "'" in value or '"' in value:
raise ValueError(
"Name cannot contain single quotes except at the start and end."
"Name cannot contain single or double quotes except at the start and end."
)

return value
Expand Down

0 comments on commit aaf5bf9

Please sign in to comment.