diff --git a/src/Support/Identity.php b/src/Support/Identity.php index 3f0d53b9..b081e81a 100644 --- a/src/Support/Identity.php +++ b/src/Support/Identity.php @@ -9,8 +9,10 @@ class Identity { + // "alice.test" protected const HANDLE_REGEX = '/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$/'; + // "did:plc:1234..." "did:web:alice.test" protected const DID_REGEX = '/^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$/'; public static function isHandle(?string $handle): bool