OCR returns full Connect ID instead of last 5 digits #4

Closed
opened 2026-05-20 21:28:06 +00:00 by shawn · 0 comments
Owner

Problem

OCR endpoint POST /api/ocr returned the full Connect ID (05912-095330) instead of just the machine ID (95330).

Fix

Changed regex extraction to take only the last 5 digits of the matched pattern. Added raw_match field to response for debugging.

Commits

## Problem OCR endpoint `POST /api/ocr` returned the full Connect ID (`05912-095330`) instead of just the machine ID (`95330`). ## Fix Changed regex extraction to take only the last 5 digits of the matched pattern. Added `raw_match` field to response for debugging. ## Commits - b20998e
shawn closed this issue 2026-05-20 21:28:06 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shawn/canteen-asset-tracker#4