OCR returns full Connect ID instead of last 5 digits #4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
OCR endpoint
POST /api/ocrreturned 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_matchfield to response for debugging.Commits
b20998e