Skip to content

Commit a58e510

Browse files
authored
Add additional character to GBFormatter alphaIn (#9)
* Add additional character to GBFormatter alphaIn * Update tests to pass
1 parent fb1653b commit a58e510

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Formatter/GBFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private function getPatterns() : array
103103
$alphaOut4 = '[ABEHMNPRVWXY]';
104104

105105
// inward code alpha chars
106-
$alphaIn = '[ABDEFGHJLNPQRSTUWXYZ]';
106+
$alphaIn = '[ABCDEFGHJLNPQRSTUWXYZ]';
107107

108108
$outPatterns = [];
109109

tests/Formatter/GBFormatterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public function providerFormat() : array
153153
['AB1234', null],
154154
['AB123C', null],
155155
['AB12C3', null],
156-
['AB12CD', null],
156+
['AB12CD', 'AB1 2CD'],
157157
['AB12DD', 'AB1 2DD'],
158158
['AB1C23', null],
159159
['AB1C2D', null],
@@ -267,7 +267,7 @@ public function providerFormat() : array
267267
['AB12345', null],
268268
['AB1234C', null],
269269
['AB123C4', null],
270-
['AB123CD', null],
270+
['AB123CD', 'AB12 3CD'],
271271
['AB123DD', 'AB12 3DD'],
272272
['AB12C34', null],
273273
['AB12C3D', null],

0 commit comments

Comments
 (0)