Skip to content

fix: strip inline comments after quoted values - #315

Open
vhinayindia wants to merge 1 commit into
npm:mainfrom
vhinayindia:fix/quoted-inline-comments
Open

vhinayindia wants to merge 1 commit into
npm:mainfrom
vhinayindia:fix/quoted-inline-comments

Conversation

@vhinayindia

Copy link
Copy Markdown

Summary

Strip a trailing ; or # comment from a complete quoted value before existing quote decoding runs. This prevents quote marks from remaining in the parsed value when an inline comment follows.

Adds regression cases for single- and double-quoted values, delimiters inside quoted values, and an unquoted value with an inline comment.

Fixes #89.

Validation

  • npm exec -- tap --no-coverage test/quoted-values.js — passed on Node 24.15.0.
  • npm test — all six test files pass with 100% coverage, and ESLint passes. The command exits 1 in template-oss-check because it reports drift in unchanged generated files: .github/dependabot.yml, .github/settings.yml, .github/workflows/ci.yml, .github/workflows/codeql-analysis.yml, and .github/workflows/release.yml.
  • npm run eslint — passed on Node 24.15.0.

@vhinayindia
vhinayindia requested a review from a team as a code owner October 6, 2026 14:52
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.

Quotes are not stripped from escaped property values when inline comments are present

1 participant