diff --git a/doc/SupportedSigmaFieldModifiers.md b/doc/SupportedSigmaFieldModifiers.md index ff2e6e6ec..0031ae44d 100644 --- a/doc/SupportedSigmaFieldModifiers.md +++ b/doc/SupportedSigmaFieldModifiers.md @@ -36,5 +36,6 @@ | utf16ǀbase64offsetǀcontains | 0 | 0 | | wideǀbase64offsetǀcontains | 0 | 0 | -Updated: 2024/10/15 +This document is being dynamically updated based on the latest rules. +Last Update: 2024/10/16 Author: Fukusuke Takahashi \ No newline at end of file diff --git a/scripts/supported_modifiers_check/supported-modifier.py b/scripts/supported_modifiers_check/supported-modifier.py index 04b82e789..1ca47e927 100644 --- a/scripts/supported_modifiers_check/supported-modifier.py +++ b/scripts/supported_modifiers_check/supported-modifier.py @@ -90,14 +90,15 @@ def get_yml_detection_counts(dir_path: str) -> Counter: markdown_str = markdown_str + pd.DataFrame(sorted(result_supported), columns=header).to_markdown(index=False) markdown_str = markdown_str + "\n\n# Hayabusa unsupported field modifiers\n" markdown_str = markdown_str + pd.DataFrame(sorted(result_unsupported), columns=header).to_markdown(index=False) + markdown_str = markdown_str + "\n\nThis document is being dynamically updated based on the latest rules." current_markdown = Path(args.out_path) if current_markdown.exists(): current_str = current_markdown.read_text(encoding='utf-8') - current_str = re.sub(r"This document is being dynamically updated based on the latest rules. Last Update:.*", "", current_str, flags=re.DOTALL).strip() + current_str = re.sub(r"Last Update:.*", "", current_str, flags=re.DOTALL).strip() if current_str == markdown_str.strip(): logging.info("No changes detected in the report. Skipping file write.") else: - markdown_str = f"{markdown_str}\n\nUpdated: {datetime.datetime.now().strftime('%Y/%m/%d')} \nAuthor: Fukusuke Takahashi" + markdown_str = f"{markdown_str}\nLast Update: {datetime.datetime.now().strftime('%Y/%m/%d')}\nAuthor: Fukusuke Takahashi" Path(args.out_path).write_text(markdown_str) logging.info(f'Markdown report generated and saved to {args.out_path}') end_time = time.time()