wharfkit / antelope

Core types, client interfaces, and other tools for working with Antelope-based blockchains.
Other
44 stars 23 forks source link

Include `Asset.SymbolCode.pattern` as static value #91

Closed DenisCarriere closed 1 year ago

DenisCarriere commented 1 year ago

Currently, the Regex patterns use *.pattern as value

import { Name } from "@wharfkit/antelope";

Name.pattern // => /^[a-z1-5.]{0,13}$/

Propose

One would assume that the following would exists:

import { Asset } from "@wharfkit/antelope";

Asset.SymbolCode.pattern // => /^[A-Z]{0,7}$/

I know the Regex pattern exists in Asset.SymbolCode.symbolNamePattern, but it's not intuitive at first