File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ import { MASK_TYPE } from '@/components/input/types/input';
3
3
export const cleanInputValueAlphanumeric = ( value : string ) : string => value . replace ( / [ \W _ ] + / g, '' ) ;
4
4
export const cleanInputValueAlphanumericWithSpaces = ( value : string ) : string =>
5
5
value . replace ( / [ ^ \w \s ] + / g, '' ) ;
6
- export const cleanInputValueNumber = ( value : string ) : string => value . replace ( / [ ^ \d ] | e | " | \^ / gi , '' ) ;
6
+ export const cleanInputValueNumber = ( value : string ) : string => value . replace ( / [ ^ \d ] / g , '' ) ;
7
7
export const cleanInputValueNumberWithSpaces = ( value : string ) : string =>
8
- value . replace ( / [ ^ \d \s ] | e | " | \^ / gi , '' ) ;
8
+ value . replace ( / [ ^ \d \s ] / g , '' ) ;
9
9
export const cleanInputValueLetters = ( value : string ) : string => value . replace ( / [ ^ a - z ñ A - Z Ñ ] / g, '' ) ;
10
10
export const cleanInputValueLettersHyphenSpace = ( value : string ) : string =>
11
11
value . replace ( / [ ^ a - z ñ A - Z Ñ \s - ] / g, '' ) ;
You can’t perform that action at this time.
0 commit comments