Skip to content

Commit da7b005

Browse files
Copilothotlong
andcommitted
Fix lychee link checker exclude-path regex patterns
Convert glob patterns to valid regex patterns: - Change '**/meta.json' to '.*/meta\.json$' - Change '**/meta.cn.json' to '.*/meta\.cn\.json$' This fixes the GitHub Actions "Check Links" workflow failure caused by invalid regex syntax. The ** glob pattern was being interpreted as a regex repetition operator without an expression. Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 01c11a8 commit da7b005

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)