We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e7b60f commit 5f250aeCopy full SHA for 5f250ae
src/UuidBase58.php
@@ -40,7 +40,10 @@ public static function decode($info) {
40
$bitcoin = new Base58Encoder();
41
$decodeInput = (string)bin2hex($bitcoin->decode($info));
42
return preg_replace(
43
- "/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/i", "$1-$2-$3-$4-$5", $decodeInput);
+ "/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/i",
44
+ "$1-$2-$3-$4-$5",
45
+ $decodeInput
46
+ );
47
}
48
public static function id() {
49
return self::encode(Uuid::uuid4());
0 commit comments