Skip to content

Commit 477f8d4

Browse files
committed
Fix typo
1 parent ba15105 commit 477f8d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pnap_bmc_api/pnap_bmc_api/models/quota_edit_limit_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class QuotaEditLimitRequest(BaseModel):
4141
def reason_validate_regular_expression(cls, value):
4242
"""Validates the regular expression"""
4343
if not re.match(r"^(?!\s*$).+", value, re.DOTALL):
44-
raise ValueError(r"must validate the regular expression /^(?m)(?!\s*$).+/")
44+
raise ValueError(r"must validate the regular expression /^(?s)(?!\s*$).+/")
4545
return value
4646

4747
model_config = {

pnap_bmc_api/pnap_bmc_api/models/quota_edit_limit_request_details.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class QuotaEditLimitRequestDetails(BaseModel):
4242
def reason_validate_regular_expression(cls, value):
4343
"""Validates the regular expression"""
4444
if not re.match(r"^(?!\s*$).+", value, re.DOTALL):
45-
raise ValueError(r"must validate the regular expression /^(?m)(?!\s*$).+/")
45+
raise ValueError(r"must validate the regular expression /^(?s)(?!\s*$).+/")
4646
return value
4747

4848
model_config = {

0 commit comments

Comments
 (0)