Merge pull request 'fix' (#14) from ErrorNoInternet/r34-scraper:fix into main

👍
This commit is contained in:
danmax 2024-11-25 03:29:35 +01:00
commit ef1e502af1

View File

@ -138,7 +138,7 @@ fn extract_urls(html: &str) -> Vec<String> {
fn extract_img_url(html: &str) -> Result<String, &'static str> {
if let Some(img_url) =
Regex::new(r"https://us\.rule34\.xxx/images/([A-Za-z0-9]+(/[A-Za-z0-9]+)+)\.[A-Za-z0-9]+")
Regex::new(r"https://us\.rule34\.xxx//images/([A-Za-z0-9]+(/[A-Za-z0-9]+)+)\.[A-Za-z0-9]+")
.unwrap()
.find(html)
{