[PATCH] Upstream patch - 02072023

This commit is contained in:
Parthiv Patel
2023-07-02 08:34:44 +00:00
parent eb7b5cb3a7
commit 0a4a4bdc26
24 changed files with 431 additions and 116 deletions
@@ -178,9 +178,9 @@ var BarcodeParser = Class.extend({
match.base_code = base_code.join('')
}
if (base_pattern[0] !== '^') {
base_pattern = "^" + base_pattern;
}
base_pattern = base_pattern.split('|')
.map(part => part.startsWith('^') ? part : '^' + part)
.join('|');
match.match = match.base_code.match(base_pattern);
return match;