[FIX] barcode_parser: don't match end of line

Causes issues with the card reader device.
This commit is contained in:
Joren Van Onder
2015-07-02 16:42:35 +02:00
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;