diff options
| author | Tobin South <tobin.south@gmail.com> | 2026-11-11 22:01:14 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-12 01:01:14 -0500 |
| commit | 032b1ec0047fa45a6b609ee3ba0dafc214da3432 (patch) | |
| tree | 1f0909c32e70530906ad7f4b4de685c3a5d5c8d3 /.github/scripts/validate-frontmatter.ts | |
| parent | e37d307bd9f85dab6fea5dfb5e3dc146753b2d2d (diff) | |
CI: validate in-repo plugin folders; point submissions to claude.ai/directory/manage (#7086)
Claude-Session: https://claude.ai/code/session_01Y6KzrBh3DugYtWavUz8Hv4
Co-authored-by: Claude <noreply@anthropic.com>
Diffstat (limited to '.github/scripts/validate-frontmatter.ts')
| -rw-r--r-- | .github/scripts/validate-frontmatter.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.github/scripts/validate-frontmatter.ts b/.github/scripts/validate-frontmatter.ts index 2aafe8f1..15255054 100644 --- a/.github/scripts/validate-frontmatter.ts +++ b/.github/scripts/validate-frontmatter.ts @@ -34,6 +34,12 @@ function quoteSpecialValues(text: string): string { result.push(line); continue; } + // Skip block scalar headers ("description: |"): the value is on the + // lines below + if (/^[|>][-+0-9]*\s*(#.*)?$/.test(value)) { + result.push(line); + continue; + } // Skip already-quoted values if ( (value.startsWith('"') && value.endsWith('"')) || |
