Skip to content

Commit 6e1fafa

Browse files
Copilothotlong
andcommitted
Improve exclude-path regex precision
Use '(^|.*/)meta\.json$' instead of '.*meta\.json$' to match only files exactly named 'meta.json', not files ending with 'meta.json' like 'custom-meta.json'. This follows the original intent of the glob pattern '**/meta.json'. Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 1ec9212 commit 6e1fafa

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)