This is an automated email from the ASF dual-hosted git repository.

jeffreyh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 05e677fcb7e Fix:build check excludes inline code (#2923)
05e677fcb7e is described below

commit 05e677fcb7e7ca2f59821ca7a87e7b44581f4ccf
Author: yangon <[email protected]>
AuthorDate: Sun Sep 28 11:32:26 2025 +0800

    Fix:build check excludes inline code (#2923)
---
 scripts/check_move.js | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/scripts/check_move.js b/scripts/check_move.js
index 2ec9b85b1af..8d0c65217ea 100644
--- a/scripts/check_move.js
+++ b/scripts/check_move.js
@@ -49,10 +49,18 @@ function isLocalLink(link) {
          !/.*@.*\..*/.test(link);
 }
 
+// function removeCodeBlocks(content) {
+//   return content.replace(/```[\s\S]*?```/g, ""); // remove ```...``` 
+// }
+
 function removeCodeBlocks(content) {
-  return content.replace(/```[\s\S]*?```/g, ""); // remove ```...``` 
+  let result = content.replace(/```[\s\S]*?```/g, ""); 
+  result = result.replace(/`[^`]*`/g, ""); 
+
+  return result;
 }
 
+
 // Check links in files
 function checkFileLinks(filePath) {
   const content = fs.readFileSync(filePath, "utf-8");


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to