Skip to content

Commit b17e25b

Browse files
committed
Fix typo
1 parent 4af0abc commit b17e25b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/src/Validator/Constraints/TimeStringValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public function validate(mixed $value, Constraint $constraint): void
1212
{
1313
$timezoneRegex = "[A-Za-z][A-Za-z0-9_\/+-]{1,35}"; # See: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
1414
$offsetRegex = "[+-]\d+(:\d\d)?";
15-
$absoluteRegex = "\d\d\d\d-\d\d-\d\d( |T)\d\d:\d\d:\d\d(\.\d{1,6})?( " . $timeZoneRegex . "|" . $offsetRegex . "|Z)";
15+
$absoluteRegex = "\d\d\d\d-\d\d-\d\d( |T)\d\d:\d\d:\d\d(\.\d{1,6})?( " . $timezoneRegex . "|" . $offsetRegex . "|Z)";
1616
$relativeRegex = "\d+:\d\d(:\d\d(\.\d{1,6})?)?";
1717
if (!$constraint instanceof TimeString) {
1818
throw new UnexpectedTypeException($constraint, TimeString::class);

0 commit comments

Comments
 (0)