Skip to content

Commit

Permalink
Consumer API: Instance URL without subdomains leads to invalid addres…
Browse files Browse the repository at this point in the history
…ses (#655)
  • Loading branch information
tnotheis authored May 16, 2024
1 parent 680c4d4 commit 7cea8f3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public static implicit operator IdentityAddress(string stringValue)
return ParseUnsafe(stringValue);
}

[GeneratedRegex($@"^(?<addressWithoutChecksum>did:e:(?<instanceUrl>(?:[a-z0-9]+\.)+[a-z]{{2,}}):dids:(?<identitySpecificPart>[0-9abcdef]{{20}}))(?<checksum>[0-9abcdef]{{{CHECKSUM_LENGTH_S}}})$")]
[GeneratedRegex($@"^(?<addressWithoutChecksum>did:e:(?<instanceUrl>(?:[a-z0-9]+\.)*[a-z]{{2,}}):dids:(?<identitySpecificPart>[0-9a-f]{{20}}))(?<checksum>[0-9a-f]{{{CHECKSUM_LENGTH_S}}})$")]
private static partial Regex IdentityAddressValidatorRegex();

#endregion
Expand Down

0 comments on commit 7cea8f3

Please sign in to comment.