From 8db67e6347f32bb46cc083911505dfd2e2e82ad5 Mon Sep 17 00:00:00 2001 From: "taian.lta" Date: Sun, 28 Jul 2024 19:14:34 +0800 Subject: [PATCH] ci: fix lower case for demourl --- scripts/visual-diff-capture.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/visual-diff-capture.ts b/scripts/visual-diff-capture.ts index ddf8b03cc3..b7ff461fc9 100644 --- a/scripts/visual-diff-capture.ts +++ b/scripts/visual-diff-capture.ts @@ -23,7 +23,12 @@ const themes = ['default', 'dark', 'compact']; async function retrieveDemoUrl(mdPath: string) { // ~demos/button-demo-basic - return mdPath.replace(/^components\//, '').replace('.md', '').replace(/\//g, '-'); + // breadcrumb-withIcon -> ~demos/breadcrumb-demo-withicon + return mdPath + .replace(/^components\//, '') + .replace('.md', '') + .replace(/\//g, '-') + .toLowerCase(); } async function retrieveConfig(mdPath: string): Promise {