From 841c50ba73fef619042ca77c0d3d7d94c0d3db91 Mon Sep 17 00:00:00 2001 From: xin-langchain Date: Wed, 9 Jul 2025 11:28:09 -0700 Subject: [PATCH] fix linter --- docs/_scripts/copy_page_hooks.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/_scripts/copy_page_hooks.py b/docs/_scripts/copy_page_hooks.py index 62675076c..de7b985ed 100644 --- a/docs/_scripts/copy_page_hooks.py +++ b/docs/_scripts/copy_page_hooks.py @@ -45,11 +45,11 @@ def _clean_markdown(content: str) -> str: # Remove frontmatter content = re.sub(r'^---\n.*?\n---\n', '', content, flags=re.DOTALL) - # Remove script tags - content = re.sub(r']*>.*?', '', content, flags=re.DOTALL | re.IGNORECASE) + # Remove script tags (handle spaces in closing tags) + content = re.sub(r']*>.*?', '', content, flags=re.DOTALL | re.IGNORECASE) - # Remove style tags - content = re.sub(r']*>.*?', '', content, flags=re.DOTALL) + # Remove style tags (handle spaces in closing tags) + content = re.sub(r']*>.*?', '', content, flags=re.DOTALL | re.IGNORECASE) # Remove HTML comments content = re.sub(r'', '', content, flags=re.DOTALL)