diff --git a/Cargo.toml b/Cargo.toml index ed41b31..fd5947b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hydrus-utils" -version = "0.4.0" +version = "0.4.1" edition = "2021" license = "Apache-2.0" description = "Automatically tag hydrus file by using pixiv and saucenao" diff --git a/src/utils/urls.rs b/src/utils/urls.rs index 8d579f4..a6dbf49 100644 --- a/src/utils/urls.rs +++ b/src/utils/urls.rs @@ -17,7 +17,7 @@ pub fn find_url_type(url: &str) -> UrlType { } fn is_reddit_url(url: &str) -> bool { - let r = regex!(r#"^http(s)?://(www\.)?(reddit\.com|redd\.it).*$"#i); + let r = regex!(r#"^http(s)?://(www\.)?(reddit\.com|redd\.it|reddit\.app\.link).*$"#i); r.is_match(url) }