Some regex to compare with strings
This commit is contained in:
parent
0e2b62f5ba
commit
395e855257
1 changed files with 9 additions and 0 deletions
9
frontend/src/Data/regex.ts
Normal file
9
frontend/src/Data/regex.ts
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
/**
|
||||||
|
* Only alphanumerical characters
|
||||||
|
*/
|
||||||
|
export const alphanumeric = /^[a-zA-Z0-9]+$/;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Only lowercase letters
|
||||||
|
*/
|
||||||
|
export const lowercase = /^[a-z]+$/;
|
Loading…
Reference in a new issue