[FIX] barcode_parser: don't match end of line
Causes issues with the card reader device.
This commit is contained in:
committed by
Frédéric van der Essen
parent
c125e364af
commit
80da43ebb8
@@ -161,9 +161,6 @@ var BarcodeParser = Class.extend({
|
||||
if (base_pattern[0] !== '^') {
|
||||
base_pattern = "^" + base_pattern;
|
||||
}
|
||||
if (base_pattern[base_pattern.length -1] !== '$') {
|
||||
base_pattern = base_pattern + ".*$";
|
||||
}
|
||||
match.match = match.base_code.match(base_pattern);
|
||||
|
||||
return match;
|
||||
|
||||
Reference in New Issue
Block a user