Spaces:
Sleeping
Sleeping
Allow .yara files
Browse files
app.py
CHANGED
|
@@ -117,7 +117,7 @@ def compile_yara_rules(repo_path: Path) -> Optional[yara.Rules]:
|
|
| 117 |
"""Compile YARA rules from repository with error handling"""
|
| 118 |
try:
|
| 119 |
# processed_dir = preprocess_yara_rules(repo_path)
|
| 120 |
-
yara_files = list(repo_path.glob("**/*.
|
| 121 |
|
| 122 |
if not yara_files:
|
| 123 |
logger.warning("No valid YARA files after preprocessing")
|
|
|
|
| 117 |
"""Compile YARA rules from repository with error handling"""
|
| 118 |
try:
|
| 119 |
# processed_dir = preprocess_yara_rules(repo_path)
|
| 120 |
+
yara_files = list(repo_path.glob("**/*.yara"))
|
| 121 |
|
| 122 |
if not yara_files:
|
| 123 |
logger.warning("No valid YARA files after preprocessing")
|