Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libs/core/langchain_core/utils/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def find_all_links(
pattern: Regex to use for extracting links from raw HTML.

Returns:
all links
A list of all links found in the HTML.
"""
pattern = pattern or DEFAULT_LINK_REGEX
return list(set(re.findall(pattern, raw_html)))
Expand Down Expand Up @@ -73,7 +73,7 @@ def extract_sub_links(
exception. Otherwise, raise the exception.

Returns:
sub links.
A list of absolute paths to sub links.
"""
base_url_to_use = base_url if base_url is not None else url
parsed_base_url = urlparse(base_url_to_use)
Expand Down