Skip to content

Commit

Permalink
fix: did at protocol regex - fix #6 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
pagoru authored Oct 27, 2024
1 parent fb93e77 commit 2da0479
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/system/ovh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const ovh = () => {
const updateRecord = async (username: string, did: string) => {
const domain = "openhotel.club";
const subDomain = `_atproto.${username}`;
const target = `"did=did:plc:${did}"`;
const target = `"did=${did}"`;

const zoneEntries = await $app.requestPromised(
"GET",
Expand Down
2 changes: 1 addition & 1 deletion src/shared/consts/at.consts.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const PROTO_DID_REGEX = /^[a-z0-9]{24}$/;
export const PROTO_DID_REGEX = /^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$/;

0 comments on commit 2da0479

Please sign in to comment.