Leading spaces in Find window can botch searches

Report your bugs here - if someone else has already mentioned the same bug, just add on to their post with as much info as possible to make the hunting easier.
Post Reply
jenv
Addicted to Bruji
Addicted to Bruji
Posts: 102
Joined: Sat Jun 30, 2007 7:57 pm

Leading spaces in Find window can botch searches

Post 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!
User avatar
Conor
Top Dog
Posts: 5345
Joined: Sat Jul 03, 2004 12:58 pm
Contact:

Re: Leading spaces in Find window can botch searches

Post 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.
Post Reply