Skip to content

Commit

Permalink
chore: fix did again
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth9890 committed Jul 8, 2024
1 parent 5f7f180 commit 4210e05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/validator-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export class ValidationService {
* does not match the pattern.
*/
public validateDID(did: string): boolean {
const didRegex = /^did:gatewayid:mygateway:[0-9a-fA-F]{64}$/;
const didRegex = /^did:gatewayid:/;
if (!didRegex.test(did)) throw new Error(`${did} is not valid did`);

return true;
Expand Down

0 comments on commit 4210e05

Please sign in to comment.