Skip to content

hrw4u: Fix u4wrh emitting quoted header names in Prism output#13207

Open
Clendenin wants to merge 1 commit into
apache:masterfrom
Clendenin:bugfix/u4wrh-quoted-header
Open

hrw4u: Fix u4wrh emitting quoted header names in Prism output#13207
Clendenin wants to merge 1 commit into
apache:masterfrom
Clendenin:bugfix/u4wrh-quoted-header

Conversation

@Clendenin
Copy link
Copy Markdown
Contributor

Summary

Header qualifiers that contain only characters legal in the Prism IDENT rule
were being wrapped in double quotes at emission time, which the grammar rejects
on re-parse. Quote a qualifier only when it actually contains characters that
require quoting.

Adds a parametrized unit test for Validator.unquote_if_ident covering
IDENT-safe stripping, space-containing qualifiers, empty strings, and
leading-digit rejection, symmetric with the existing needs_quotes and
quote_if_needed tests.

Header qualifiers that contain only characters legal in the HRW4U IDENT rule
were being wrapped in double quotes at emission time, which the grammar
rejects on re-parse. Quote a qualifier only when it actually contains
characters that require quoting.

Adds a parametrized unit test for Validator.unquote_if_ident covering
IDENT-safe stripping, space-containing qualifiers, empty strings, and
leading-digit rejection, symmetric with the existing needs_quotes and
quote_if_needed tests.
@Clendenin Clendenin force-pushed the bugfix/u4wrh-quoted-header branch from 57d709a to c74b482 Compare May 27, 2026 23:19
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.

1 participant