Hacker News new | ask | show | jobs
by kelnos 1801 days ago
> deal with double-scans of the card,

Presumably you know the length of the string generated by the barcode reader, so you just set the max length of the text field to that length, and/or ignore anything longer via JS.