Skip to content

Commit 9a90d93

Browse files
author
Artem
committed
escape "-" symbol to avoid regex range
1 parent 15e5b8a commit 9a90d93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redisinsight/ui/src/utils/validations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export const errorValidateNegativeInteger = (value: string) => {
111111
}
112112

113113
export const validateCertName = (initValue: string) =>
114-
initValue.replace(/[^ a-zA-Z0-9!@#$%^&*-_()[\]]+/gi, '').toString()
114+
initValue.replace(/[^ a-zA-Z0-9!@#$%^&*\-_()[\]]+/gi, '').toString()
115115

116116
export const isRequiredStringsValid = (...params: string[]) => params.every((p = '') => p.length > 0)
117117

0 commit comments

Comments
 (0)