[−][src]Static rustube::ID_PATTERNS
pub static ID_PATTERNS: [&SyncLazy<Regex>; 4]
A list of possible YouTube video identifier patterns.
Guarantees:
- each pattern contains an
id
group that will always capture when the pattern matches - The captured id will always match following regex (defined in ID_PATTERN):
^[a-zA-Z0-9_-]{11}$