Skip to content

Commit 822414b

Browse files
committed
Fix
1 parent 976d225 commit 822414b

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

hivecraft/prompts/prompt_file.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ def validate(self) -> bool:
2929
print(f"> Error: File '{self.filename}' does not start and end with <article> tag after stripping whitespace.")
3030
return False
3131

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-
3732
# Check for the presence of <a> tags and check if they are not empty and if the href attribute points to a valid URL
3833
if "<a " in content:
3934
if not any(tag.startswith("<a href=") for tag in content.split("<a ")[1:]):

0 commit comments

Comments
 (0)