diff --git a/src/bot/file_preview/mod.rs b/src/bot/file_preview/mod.rs index 679536a..0bead77 100644 --- a/src/bot/file_preview/mod.rs +++ b/src/bot/file_preview/mod.rs @@ -21,7 +21,7 @@ mod gist; mod github_repositoriy_file; static GITHUB_REPOSITORY_FILE_URL_REGEX: Lazy = Lazy::new(|| { - Regex::new(r"https://github\.com(?:/[^/\s]+){2}/(?:blob|blame)(?:/[^/\s]+)+#[^/\s]+").unwrap() + Regex::new(r"https://github\.com(?:/[^/\s]+){2}/(?:blob|blame)(?:/[^/\s]+)+#(?:[^/\s]*L[^/\s]*)+").unwrap() }); static GIST_URL_REGEX: Lazy =