Skip to content

Commit

Permalink
Add additional character to GBFormatter alphaIn (#9)
Browse files Browse the repository at this point in the history
* Add additional character to GBFormatter alphaIn

* Update tests to pass
  • Loading branch information
chris-ware authored Jul 10, 2022
1 parent fb1653b commit a58e510
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Formatter/GBFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private function getPatterns() : array
$alphaOut4 = '[ABEHMNPRVWXY]';

// inward code alpha chars
$alphaIn = '[ABDEFGHJLNPQRSTUWXYZ]';
$alphaIn = '[ABCDEFGHJLNPQRSTUWXYZ]';

$outPatterns = [];

Expand Down
4 changes: 2 additions & 2 deletions tests/Formatter/GBFormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public function providerFormat() : array
['AB1234', null],
['AB123C', null],
['AB12C3', null],
['AB12CD', null],
['AB12CD', 'AB1 2CD'],
['AB12DD', 'AB1 2DD'],
['AB1C23', null],
['AB1C2D', null],
Expand Down Expand Up @@ -267,7 +267,7 @@ public function providerFormat() : array
['AB12345', null],
['AB1234C', null],
['AB123C4', null],
['AB123CD', null],
['AB123CD', 'AB12 3CD'],
['AB123DD', 'AB12 3DD'],
['AB12C34', null],
['AB12C3D', null],
Expand Down

0 comments on commit a58e510

Please sign in to comment.