Skip to content

Add frontmatter validation for non-breaking spaces#2180

Open
2u841r wants to merge 2 commits intosyntaxfm:mainfrom
2u841r:fix-nbsp-validation
Open

Add frontmatter validation for non-breaking spaces#2180
2u841r wants to merge 2 commits intosyntaxfm:mainfrom
2u841r:fix-nbsp-validation

Conversation

@2u841r
Copy link
Copy Markdown
Contributor

@2u841r 2u841r commented Mar 30, 2026

Summary

  • Adds a validateFrontmatter check to scripts/merging-show-validation.js
  • Detects non-breaking spaces (U+00A0) used as indentation in show frontmatter YAML
  • Fails CI with a clear error message before the PR can be merged

This prevents a repeat of the issue in #2179 where show 991's hosts list was indented with non-breaking spaces, breaking YAML parsing and likely preventing the show from being imported into the DB.

Closes #2177

🤖 Generated with Claude Code

2u841r and others added 2 commits March 30, 2026 20:58
Hosts list was indented with non-breaking spaces (U+00A0) instead of
regular spaces, causing YAML parse errors.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Detects U+00A0 non-breaking spaces used as indentation in show
frontmatter, which break YAML parsers. Caught in CI before merge.

Fixes syntaxfm#2177

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 30, 2026

@2u841r is attempting to deploy a commit to the Syntax Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New episodes can take up to 3 hours to appear on site after publish time

1 participant