fix(pcat): robust year extraction across key spelling + date format #138

Merged
root merged 1 commits from dev into main 2026-06-12 16:11:22 +03:00
Owner

Broadened extractYearFromPcatCar after auditing 176 null-year prod pcat
vehicles: the build date sits under "production date" (space) far more often
than "production_date" (underscore), and values come both year-first
(2006/02/27) and day-first (08/03/2016). Match the date key by spelling-agnostic
substring and pull the 4-digit year via regex so parseInt no longer reads the
day. Concrete Year param still wins over build date.

Co-Authored-By: Claude Fable 5 noreply@anthropic.com

Broadened extractYearFromPcatCar after auditing 176 null-year prod pcat vehicles: the build date sits under "production date" (space) far more often than "production_date" (underscore), and values come both year-first (2006/02/27) and day-first (08/03/2016). Match the date key by spelling-agnostic substring and pull the 4-digit year via regex so parseInt no longer reads the day. Concrete Year param still wins over build date. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
root added 1 commit 2026-06-12 16:11:18 +03:00
fix(pcat): robust year extraction across key spelling + date format
Some checks failed
QA Gate (P0/P1) / Test affected app (pull_request) Has been cancelled
d5362a5390
Broadened extractYearFromPcatCar after auditing 176 null-year prod pcat
vehicles: the build date sits under "production date" (space) far more often
than "production_date" (underscore), and values come both year-first
(2006/02/27) and day-first (08/03/2016). Match the date key by spelling-agnostic
substring and pull the 4-digit year via regex so parseInt no longer reads the
day. Concrete Year param still wins over build date.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
root merged commit 97c1dbcece into main 2026-06-12 16:11:22 +03:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: root/sase.tr#138