mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 08:21:39 -06:00
fbd7a2e125
ISBNs copied from Amazon carry hyphens, and copied ASINs often start with a zero-width space. The edit tab cut a hyphenated ISBN at its maxlength, Book Dock sent it on for the server to reject, and an invisible character left an ID that looked right but never matched. Clean ISBN, ASIN and provider id input as it is typed or pasted, and apply the same shared rule in the book metadata and Book Dock DTOs so every client, including released iOS builds, gets it. Provider ids keep their punctuation because Google ids and slugs use it, and an over-long value is kept whole so validation still names the field. Closes #1624