mirror of
https://github.com/iv-org/invidious.git
synced 2026-09-26 11:35:27 -05:00
add coderabbit suggestion about PCRE2 regex and length of the string with a new line
This commit is contained in:
parent
9199271cfd
commit
73c3163d8f
@ -409,5 +409,5 @@ def validate_video_id(id : String) : Bool
|
|||||||
# This is the video ID regex. May be need to be changed
|
# This is the video ID regex. May be need to be changed
|
||||||
# if Youtube ever decides to add more characters to their
|
# if Youtube ever decides to add more characters to their
|
||||||
# video IDs.
|
# video IDs.
|
||||||
/^[a-zA-Z0-9_-]{11}$/.matches?(id)
|
/\A[a-zA-Z0-9_-]{11}\z/.matches?(id)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user