diff --git a/src/handlers/youtube.rs b/src/handlers/youtube.rs index 14e720f..76fe775 100644 --- a/src/handlers/youtube.rs +++ b/src/handlers/youtube.rs @@ -13,7 +13,7 @@ static SHORTCODE_RE: OnceLock = OnceLock::new(); fn shortcode_regex() -> &'static Regex { SHORTCODE_RE.get_or_init(|| { - Regex::new(r"https?://(?:www\.)?(?:youtube\.com/shorts/[A-Za-z0-9_-]+(?:\?[^\s]*)?") + Regex::new(r"https?:\/\/(?:www\.)?youtube\.com\/shorts\/[A-Za-z0-9_-]+(?:\?[^\s]*)?") .expect("filed to compile regex") }) }