Skip to content

Commit 1ec9212

Browse files
Copilothotlong
andcommitted
Make exclude-path regex patterns more robust
Use '.*meta\.json$' instead of '.*/meta\.json$' to match files both with and without directory paths. This ensures all meta.json and meta.cn.json files are properly excluded from link checking. Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent da7b005 commit 1ec9212

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/check-links.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
# Use configuration file for path remapping and settings
2727
args: >-
2828
--config lychee.toml
29-
--exclude-path '.*/meta\.json$'
30-
--exclude-path '.*/meta\.cn\.json$'
29+
--exclude-path '.*meta\.json$'
30+
--exclude-path '.*meta\.cn\.json$'
3131
'content/**/*.md'
3232
'content/**/*.mdx'
3333
'README.md'

0 commit comments

Comments
 (0)