修复bug
This commit is contained in:
20
check_one.py
Normal file
20
check_one.py
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
import sys
|
||||
|
||||
def check_file(file_path):
|
||||
print(f"Checking {file_path}")
|
||||
try:
|
||||
content = open(file_path, 'r', encoding='utf-8').read()
|
||||
tags = ['template', 'script', 'style', 'view', 'text', 'image', 'scroll-view', 'component', 'slot', 'input', 'textarea']
|
||||
|
||||
# Simple count check
|
||||
for tag in tags:
|
||||
o_count = content.count(f'<{tag}')
|
||||
c_count = content.count(f'</{tag}>')
|
||||
print(f" {tag}: open={o_count}, close={c_count}")
|
||||
|
||||
except Exception as e:
|
||||
print(f"Error: {e}")
|
||||
|
||||
if __name__ == "__main__":
|
||||
check_file(sys.argv[1])
|
||||
Reference in New Issue
Block a user