From 73c3163d8f6eac05ecd64cf31f672f4293497d1c Mon Sep 17 00:00:00 2001 From: Fijxu Date: Mon, 14 Sep 2026 17:47:19 -0300 Subject: [PATCH] add coderabbit suggestion about PCRE2 regex and length of the string with a new line --- src/invidious/helpers/utils.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/helpers/utils.cr b/src/invidious/helpers/utils.cr index d8f74b386..6973a93fb 100644 --- a/src/invidious/helpers/utils.cr +++ b/src/invidious/helpers/utils.cr @@ -409,5 +409,5 @@ def validate_video_id(id : String) : Bool # This is the video ID regex. May be need to be changed # if Youtube ever decides to add more characters to their # video IDs. - /^[a-zA-Z0-9_-]{11}$/.matches?(id) + /\A[a-zA-Z0-9_-]{11}\z/.matches?(id) end