mirror of
https://github.com/Instadapp/assembly.git
synced 2024-07-29 22:37:06 +00:00
8 lines
174 B
TypeScript
8 lines
174 B
TypeScript
|
const amountPattern = /^\d*([,\\.]\d*)?$/;
|
||
|
|
||
|
const notAlphaNumPattern = /[^A-Za-z0-9\s]+/gi;
|
||
|
|
||
|
export function usePattern() {
|
||
|
return { amountPattern, notAlphaNumPattern };
|
||
|
}
|