vchuserandClaude Opus 5 4201643fc5 Fix Samsung density-code regex to honor fixed field width
The lazy quantifier {4,6}? never expanded beyond its minimum because
the trailing greedy [A-Z0-9]* always absorbed the rest up to the
hyphen, so a longer density code would silently be truncated to 5
chars and could match an unrelated table entry, producing wrong specs
instead of null. The density code is actually fixed-width (A + 4
chars); the revision after it is the variable part. Tighten the
pattern to {4}, rewrite the stale comment (which still claimed a fixed
3-char revision), and add a test that every Samsung density key is
exactly 5 characters so a future mismatched table entry can't silently
become unreachable.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 14:41:24 +02:00

ocr_scanner

Short description of what this project does.

Getting Started

Prerequisites

  • Node.js 20+
  • npm or pnpm

Installation

npm install

Development

npm run dev

Tech Stack

  • ...

Project Structure

src/
  ...

License

...

S
Description
No description provided
Readme
687 KiB
Languages
JavaScript 95.4%
CSS 2.6%
Python 1.8%
HTML 0.2%