assembly/composables/usePattern.ts
Georges KABBOUCHI e22a0cc177 wip
2021-07-26 21:33:52 +03:00

8 lines
174 B
TypeScript

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