Skip to content

Commit 6f3598c

Browse files
Attila Csehpsychedelicious
authored andcommitted
any character accepted
1 parent f26a861 commit 6f3598c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/components/number-input/composite-number-input.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ const roundToMultiple = (value: number, multiple: number): number => {
4848
};
4949

5050
const mexp = new Mexp();
51-
const validCharacterRegex = /^[Ee0-9+\-*/.]$/;
52-
const isValidCharacter = (char: string) => validCharacterRegex.test(char);
51+
const isValidCharacter = (_: string) => true;
5352

5453
export const CompositeNumberInput: ComponentWithAs<
5554
ComponentWithAs<'div', NumberInputProps>,

0 commit comments

Comments
 (0)