Skip to content

Commit

Permalink
Fix: Allow upper-case x
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 29, 2023
1 parent 00d53aa commit 668bdfa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Composer/TildeVersionRange.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ final class TildeVersionRange
# version-like branch
(
(0|[1-9]\d*)(\.(0|[1-9]\d*)){0,2}\.x[-._]?dev
(0|[1-9]\d*)(\.(0|[1-9]\d*)){0,2}\.[xX][-._]?dev
)
)
$/xJ
Expand Down
5 changes: 4 additions & 1 deletion test/DataGenerator/Composer/VersionLikeBranchGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ public function __construct()
{
$this->numberGenerator = new Test\DataGenerator\NumberGenerator();
$this->suffixGenerator = new Test\DataGenerator\AffixingGenerator(
new Test\DataGenerator\ValueGenerator('.x'),
new Test\DataGenerator\ValueGenerator(
'.x',
'.X',
),
new Test\DataGenerator\ValueGenerator(
'',
'-',
Expand Down

0 comments on commit 668bdfa

Please sign in to comment.