-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
javascript-barcodes/bcmath/libbcmath.js
Line 154 in d1540e9
| while ((str[ptr]) % 1 === 0) { //libbcmath.isdigit(str[ptr])) { |
Line 154 currently leads to the while loop checking for an out-of-range ptr in str, so there's always an "undefined property" warning in the browser console. Can be fixed by using a for loop instead, of course the ptr then doesn't have to be incremented inside the loop anymore:
for(;ptr < str.length;++ptr)
{ //bcmath.isdigit(str[ptr])) {
//ptr++;
strscale++; /* digits */
}Metadata
Metadata
Assignees
Labels
No labels