Skip to content

Use definePattern utility function for regex structs #3066

@Mrtenz

Description

@Mrtenz

@metamask/utils@11.1.0 introduces a new definePattern function which can be used as replacement for the pattern struct from Superstruct, resulting in better error messages. We should replace usage of pattern in the Snaps repo with this new function.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions