Skip to content

Commit c3b0fc9

Browse files
committed
fix: add more spec to 984
1 parent 421f3e1 commit c3b0fc9

File tree

4 files changed

+841
-832
lines changed

4 files changed

+841
-832
lines changed

data/clean/f_984_zhihan_refined.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ def f_984(myString):
1313
myString (str): The string from which to extract the URL.
1414
1515
Returns:
16-
str: The title of the webpage at the extracted URL if successful, otherwise an error message describing the issue.
16+
str: The title of the webpage at the extracted URL if successful, otherwise one of the following error messages:
17+
- "No valid URL found in the provided string."
18+
- "Unable to fetch the content of the URL: {url}"
19+
- "No title tag found in the webpage."
1720
1821
Requirements:
1922
- re

0 commit comments

Comments
 (0)