diff --git a/__tests__/unit/core-magistrate/fixtures/entity/schemas/register.ts b/__tests__/unit/core-magistrate/fixtures/entity/schemas/register.ts index 742bd12ab5..83aaa0f6c2 100644 --- a/__tests__/unit/core-magistrate/fixtures/entity/schemas/register.ts +++ b/__tests__/unit/core-magistrate/fixtures/entity/schemas/register.ts @@ -15,7 +15,7 @@ export const validRegisters: Interfaces.IEntityAsset[] = [ subType: 0, action: Enums.EntityAction.Register, data: { - name: "my_module", + name: "my_@&$-module!...", ...data, }, })), diff --git a/packages/core-magistrate-crypto/src/transactions/utils/entity-schemas.ts b/packages/core-magistrate-crypto/src/transactions/utils/entity-schemas.ts index 003869d33e..0b3aecb39d 100644 --- a/packages/core-magistrate-crypto/src/transactions/utils/entity-schemas.ts +++ b/packages/core-magistrate-crypto/src/transactions/utils/entity-schemas.ts @@ -16,7 +16,7 @@ export const register = { required: ["name"], additionalProperties: false, properties: { - name: { type: "string", pattern: "^[a-zA-Z0-9_-]+$", minLength: 1, maxLength: 40 }, + name: { type: "string", pattern: "^[a-zA-Z0-9_!@$&.-]+$", minLength: 1, maxLength: 40 }, ...update.properties, }, };