We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 670e301 commit a88aecaCopy full SHA for a88aeca
src/utils/customDecorator/vmId.decorator.ts
@@ -5,7 +5,7 @@ import {
5
} from 'class-validator';
6
7
const VERIFICATION_METHOD_ID_REGEX =
8
- /^did:hid:(testnet:)?[a-zA-Z0-9]{32,}#[a-zA-Z0-9\-]+$/;
+ /^did:hid:(?:[-a-zA-Z0-9]{1,10}:)?(?:[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}:[-.%a-zA-Z0-9]{1,128}|[A-Za-z0-9.-]+)(?:#[A-Za-z0-9.-]+)?$/;
9
10
export function ValidateVerificationMethodId(
11
validationOptions?: ValidationOptions,
0 commit comments