@mikezimm/fps-library-v2
Version:
Library of reusable typescript/javascript functions, interfaces and constants
19 lines • 1.18 kB
TypeScript
interface IInputMask {
mask: string;
name: string;
}
/**
Per ChatGPT, these are the explanation of common css masks
Phone Number: (999) 999-9999 means three digits followed by another three digits and four digits.
Social Security Number: 999-99-9999 means three digits, two digits, and four digits.
Date: 99/99/9999 means two digits for the month and day, and four digits for the year.
Time: 99:99 AA means two digits for the hour and minutes, with AM/PM as placeholders.
Zip Code: 99999 or 99999-9999 means five digits or five digits followed by four more.
Credit Card Number: 9999 9999 9999 9999 means four groups of four digits.
Currency: $9,999.99 means a dollar sign followed by digits and two decimal places.
Email Address: *{1,}@*{1,}.*{2,} means at least one character before and after the @ and at least two characters for the domain.
License Plate: AAA-9999 or 9999-AAA means a combination of letters and digits.
Driver's License Number: A999-999-999-999 means a single letter followed by three groups of digits.
*/
declare const inputMasks: IInputMask[];
//# sourceMappingURL=inputMasks.d.ts.map