Skip to content

Commit

Permalink
fix: add more spec to 984
Browse files Browse the repository at this point in the history
  • Loading branch information
terryyz committed May 7, 2024
1 parent 421f3e1 commit c3b0fc9
Show file tree
Hide file tree
Showing 4 changed files with 841 additions and 832 deletions.
5 changes: 4 additions & 1 deletion data/clean/f_984_zhihan_refined.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ def f_984(myString):
myString (str): The string from which to extract the URL.
Returns:
str: The title of the webpage at the extracted URL if successful, otherwise an error message describing the issue.
str: The title of the webpage at the extracted URL if successful, otherwise one of the following error messages:
- "No valid URL found in the provided string."
- "Unable to fetch the content of the URL: {url}"
- "No title tag found in the webpage."
Requirements:
- re
Expand Down
Loading

0 comments on commit c3b0fc9

Please sign in to comment.