Skip to content

fix(B-0272): parse single-quoted DAT attributes#2172

Merged
AceHack merged 1 commit into
mainfrom
codex/b0272-single-quote-dat-attrs
May 9, 2026
Merged

fix(B-0272): parse single-quoted DAT attributes#2172
AceHack merged 1 commit into
mainfrom
codex/b0272-single-quote-dat-attrs

Conversation

@AceHack
Copy link
Copy Markdown
Member

@AceHack AceHack commented May 9, 2026

Summary

  • accepts single-quoted Logiqx DAT XML attribute values in the ROM canonicalizer
  • adds a focused parser regression for single-quoted ROM attributes

Checks

  • bun test tools/roms/canonicalize.test.ts
  • git diff --check origin/main..HEAD -- tools/roms/canonicalize.ts tools/roms/canonicalize.test.ts

Co-Authored-By: Codex noreply@openai.com

Teach the Logiqx DAT parser to accept single-quoted XML attribute values while preserving the existing double-quoted path. Add a focused parser regression for single-quoted ROM attributes.

Co-Authored-By: Codex <noreply@openai.com>
Copilot AI review requested due to automatic review settings May 9, 2026 03:03
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Logiqx DAT XML parsing in the ROM canonicalizer to accept both double-quoted and single-quoted attribute values, matching real-world DAT variants, and adds a regression test to prevent future breakage.

Changes:

  • Extend ROM attribute parsing to support single-quoted XML attributes in <rom ... /> tags.
  • Add a focused parseDatfile test covering single-quoted attributes.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
tools/roms/canonicalize.ts Expands the attribute regex to parse both " and ' quoted values and uses the correct capture group.
tools/roms/canonicalize.test.ts Adds a regression test ensuring single-quoted attributes are parsed into the SHA1-keyed lookup.

@AceHack AceHack merged commit 5bd591d into main May 9, 2026
33 of 35 checks passed
@AceHack AceHack deleted the codex/b0272-single-quote-dat-attrs branch May 9, 2026 03:12
AceHack added a commit that referenced this pull request May 16, 2026
…th pure-drift this session) (#3820)

10th pure-drift close of the resume-session sequence. All 3
acceptance items verifiably shipped via PRs #2166 + #2168 + #2172:

- Script at tools/roms/canonicalize.ts (8953 bytes)
- TOSEC + No-Intro matching via Logiqx XML
- Rename + unmatched-hash reporting

Surfaced by peer Otto's audit-backlog-status-drift.ts (PR #3758);
per-acceptance verification confirmed pure-drift.

Co-authored-by: Claude <noreply@anthropic.com>
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.

2 participants