Throw out non-digit barcodes for strict check user/tsbere/lp856628
authorThomas Berezansky <tsbere@mvlc.org>
Thu, 22 Sep 2011 13:24:56 +0000 (09:24 -0400)
committerThomas Berezansky <tsbere@mvlc.org>
Thu, 22 Sep 2011 17:48:06 +0000 (13:48 -0400)
commit458a875878fcfb74c22d68e4fe6f5f3efb07bb9f
tree5aa361da2bd557a08ee296f678b9cac8abeb1db5
parent2de6758c519938ccba06c5b136b9c262b9a34844
Throw out non-digit barcodes for strict check

Characters like "." are valid for numbers, but not the algorithm.

Thus, we need to throw out "16.00" despite the check for
"16.00" == Number("16.00")
returning true.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Open-ILS/xul/staff_client/chrome/content/util/barcode.js