assembly/composables/usePattern.ts

8 lines
174 B
TypeScript
Raw Normal View History

2021-07-26 18:33:52 +00:00
const amountPattern = /^\d*([,\\.]\d*)?$/;
const notAlphaNumPattern = /[^A-Za-z0-9\s]+/gi;
export function usePattern() {
return { amountPattern, notAlphaNumPattern };
}