Skip to content

Commit 1ab0bd3

Browse files
committed
refactor: improve footer refs values match
1 parent 1fe7152 commit 1ab0bd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Git/Commit/Footer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function __construct(string $token, string $value)
4949

5050
$refs = [];
5151
$tokenLower = strtolower($this->token);
52-
$values = preg_split('/[,\s]/', $this->value);
52+
$values = preg_split('/[,\s]+/', $this->value, -1, PREG_SPLIT_NO_EMPTY);
5353
foreach ($values as $val) {
5454
if (isset($val[0]) && $val[0] === '#') {
5555
$ref = ltrim($val, '#');

0 commit comments

Comments
 (0)