Skip to content

Commit ba15105

Browse files
committed
Update the regex
1 parent 0cacd38 commit ba15105

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
@@ -40,7 +40,7 @@ class QuotaEditLimitRequest(BaseModel):
4040
@field_validator('reason')
4141
def reason_validate_regular_expression(cls, value):
4242
"""Validates the regular expression"""
43-
if not re.match(r"^(?m)(?!\s*$).+", value):
43+
if not re.match(r"^(?!\s*$).+", value, re.DOTALL):
4444
raise ValueError(r"must validate the regular expression /^(?m)(?!\s*$).+/")
4545
return value
4646

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
@@ -41,7 +41,7 @@ class QuotaEditLimitRequestDetails(BaseModel):
4141
@field_validator('reason')
4242
def reason_validate_regular_expression(cls, value):
4343
"""Validates the regular expression"""
44-
if not re.match(r"^(?m)(?!\s*$).+", value):
44+
if not re.match(r"^(?!\s*$).+", value, re.DOTALL):
4545
raise ValueError(r"must validate the regular expression /^(?m)(?!\s*$).+/")
4646
return value
4747

0 commit comments

Comments
 (0)