We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c394ac7 + 832f963 commit 443f2ccCopy full SHA for 443f2cc
src/Validator/Constraints/YoutubeUrlValidator.php
@@ -19,7 +19,7 @@
19
20
class YoutubeUrlValidator extends ConstraintValidator
21
{
22
- public const YOUTUBE_REGEX_VALIDATOR = '`^(?:https?://)?(?:www\.)?(?:youtu.be/|youtube\.com/(?:watch(?:/|/?\?(?:\S*&)?v=)|embed|shorts/))([\w\d-]+)$`';
+ public const YOUTUBE_REGEX_VALIDATOR = '`^(?:https?://)?(?:www\.)?(?:youtu.be/|youtube\.com/(?:watch(?:/|/?\?(?:\S*&)?v=)|embed/|shorts/))([\w\d-]+)$`';
23
24
public function validate(mixed $value, Constraint $constraint): void
25
0 commit comments