Add support for reddit.app.link urls

Signed-off-by: trivernis <trivernis@protonmail.com>
main
trivernis 2 years ago
parent 51178861f5
commit 5ce7fc8cdd
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -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"

@ -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)
}

Loading…
Cancel
Save