Skip to content

Commit 9fb4db7

Browse files
committed
Allow also only 1 subsecond for absolute positive URLs
This proves why extraction is needed.
1 parent e9bf0cf commit 9fb4db7

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
@@ -26,7 +26,7 @@ public function validate(mixed $value, Constraint $constraint): void
2626

2727
if ($constraint->allowRelative) {
2828
$regex = $constraint->relativeIsPositive ?
29-
"/^(\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d(\.\d{2,6})? " . $timeZoneRegex . "|\+?" . $relativeRegex . ")$/" :
29+
"/^(\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d(\.\d{1,6})? " . $timeZoneRegex . "|\+?" . $relativeRegex . ")$/" :
3030
"/^(\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d(\.\d{1,6})? " . $timeZoneRegex . "|-" . $relativeRegex . ")$/";
3131
$message = $constraint->absoluteRelativeMessage;
3232
} else {

0 commit comments

Comments
 (0)