Skip to content

Commit

Permalink
Update Identity.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kawax committed Oct 17, 2024
1 parent 3dbaa40 commit 6f140b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Support/Identity.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6f140b4

Please sign in to comment.