Skip to content

Commit

Permalink
Merge pull request #149 from WLsupport/patch-1
Browse files Browse the repository at this point in the history
fix regression from #130 in DNS1D.php
  • Loading branch information
milon authored Jun 28, 2022
2 parents 90d19d4 + 8bc2174 commit a35005e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Milon/Barcode/DNS1D.php
Original file line number Diff line number Diff line change
@@ -1231,7 +1231,7 @@ protected function barcode_c128($code, $type = '') {
}
for ($i = 0; $i < $len; $i+=2) {
$chrnum = $code[$i] . $code[$i + 1];
if (preg_match('/([0-9][2])/', $chrnum) > 0) {
if (preg_match('/([0-9]{2})/', $chrnum) > 0) {
$code_data[] = intval($chrnum);
} else {
return false;

0 comments on commit a35005e

Please sign in to comment.