We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 976d225 commit 822414bCopy full SHA for 822414b
1 file changed
hivecraft/prompts/prompt_file.py
@@ -29,11 +29,6 @@ def validate(self) -> bool:
29
print(f"> Error: File '{self.filename}' does not start and end with <article> tag after stripping whitespace.")
30
return False
31
32
- # Check if the file contains a non-closed tag
33
- if content.count("<") != content.count(">"):
34
- print(f"> Error: File '{self.filename}' contains non-closed tags.")
35
- return False
36
-
37
# Check for the presence of <a> tags and check if they are not empty and if the href attribute points to a valid URL
38
if "<a " in content:
39
if not any(tag.startswith("<a href=") for tag in content.split("<a ")[1:]):
0 commit comments