Skip to content

Commit

Permalink
Attribution of regex to stackoverflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Chia committed Sep 22, 2023
1 parent 745eb15 commit 5acc492
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/daft-io/src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use crate::object_io::{FileMetadata, FileType, LSResult};
use super::object_io::{GetResult, ObjectSource};

lazy_static! {
// Taken from: https://stackoverflow.com/a/15926317/3821154
static ref HTML_A_TAG_HREF_RE: Regex =
Regex::new(r#"<(a|A)\s+(?:[^>]*?\s+)?(href|HREF)=["'](?P<url>[^"']+)"#).unwrap();
}
Expand Down

0 comments on commit 5acc492

Please sign in to comment.