We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd94665 commit fb8e9f9Copy full SHA for fb8e9f9
1 file changed
lib/yt/models/resource.rb
@@ -91,6 +91,7 @@ def update(attributes = {})
91
%r{^(?:https?://)?(?:www\.)?youtu\.be/(?<id>[a-zA-Z0-9_-]{11})},
92
%r{^(?:https?://)?(?:www\.)?youtube\.com/embed/(?<id>[a-zA-Z0-9_-]{11})},
93
%r{^(?:https?://)?(?:www\.)?youtube\.com/v/(?<id>[a-zA-Z0-9_-]{11})},
94
+ %r{^(?:https?://)?(?:www\.)?youtube\.com/shorts/(?<id>[a-zA-Z0-9_-]{11})},
95
]
96
97
# @return [Array<Regexp>] patterns matching URLs of YouTube channels.
0 commit comments