Page 1 of 1

Leading spaces in Find window can botch searches

Posted: Thu Aug 12, 2010 1:35 am
by jenv
Start Bookpedia, begin find (Apple-F)

Bug #1:
1) Search for an ISBN-10 with dashes in it (like 0-441-20664-6). Make sure there are one or more, but not exactly two, leading spaces in front of it.
2) Observe this error: There are no matches for " 0-441-20664-6".
3) If you remove the dashes or remove the leading space(s) it works.
4) I've tried a few ISBN-13s, but they worked. I don't know why.

Bug #2
1) Search for the same ISBN, but remove the dashes. Put exactly two leading spaces in front.
2) Observe this error: Sorry, this is a 12 digit UPC number that cannot be mapped to an ISBN number.
3) Clearly, the two spaces should not be treated as part of a 12 digit number!

Re: Leading spaces in Find window can botch searches

Posted: Thu Aug 12, 2010 5:20 am
by Conor
Thank you for the detailed bug report, we look for ISBNs by determining a large number in a string. I moved our remove dashes and spaces function to execute earlier and that fixes the problem. It will be in the next release or already in the current beta.