Skip to content

Commit 718c315

Browse files
committed
only single space
1 parent 26c7bd6 commit 718c315

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/lib/UnityUser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ public function getSSHKeys(): array
306306
private static function removeSSHKeyOptionalCommentSuffix(string $key): string
307307
{
308308
$matches = [];
309-
if (preg_match("/^(\S+\s+\S+)/", $key, $matches)) {
309+
if (preg_match("/^(\S+ \S+)/", $key, $matches)) {
310310
return $matches[1];
311311
} else {
312312
throw new \ValueError("invalid SSH key: $key");

0 commit comments

Comments
 (0)