Skip to content

Remove redundant UTF7 BOM#730

Merged
Ousret merged 1 commit intojawah:masterfrom
openculinary:pr-717-followup/remove-redundant-utf7-bom-substring
Apr 3, 2026
Merged

Remove redundant UTF7 BOM#730
Ousret merged 1 commit intojawah:masterfrom
openculinary:pr-717-followup/remove-redundant-utf7-bom-substring

Conversation

@jayaddison
Copy link
Copy Markdown
Contributor

@jayaddison jayaddison commented Apr 2, 2026

One of the UTF7 byte order mark (BOM) variants was redundant; it is an extension of one of the subsequent pattern variants.

This does not affect correctness, but it does imply that string-matching work may be duplicated.

Remove the longer, superset prefix to remove a comparison when inspecting some UTF7 BOM content.

Refs:

@jayaddison jayaddison requested a review from Ousret as a code owner April 2, 2026 10:56
@jayaddison

This comment was marked as resolved.

One of the UTF7 byte order mark (BOM) variants was redundant; it is an extension of one of the subsequent pattern variants.

This does not affect correctness, but it does imply that string-matching work may be duplicated.

Remove the longer, superset prefix to remove a comparison when inspecting some UTF7 BOM content.

Refs:
 - Closes #716.
 - Follow-up to PR #717.
 - Relates-to commit b579cd6.
@jayaddison jayaddison force-pushed the pr-717-followup/remove-redundant-utf7-bom-substring branch from a095daf to d0f1a39 Compare April 2, 2026 11:02
Copy link
Copy Markdown
Member

@Ousret Ousret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Ousret Ousret merged commit 2512a2b into jawah:master Apr 3, 2026
42 checks passed
@jayaddison
Copy link
Copy Markdown
Contributor Author

Thanks again 👍

@jayaddison jayaddison deleted the pr-717-followup/remove-redundant-utf7-bom-substring branch April 3, 2026 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Unnecessary substring in UTF-7 BOM list

2 participants