UNPKG

restricted-input

Version:

Restrict inputs to certain valid characters (e.g. formatting phone or card numbers)

7 lines (6 loc) 172 B
export type Pattern = { value: RegExp | string; isPermaChar: boolean; index: number; }; export declare function parsePattern(patternString: string): Pattern[];