MCPcopy Create free account
hub / github.com/redis/RedisInsight / errorValidateNegativeInteger

Function errorValidateNegativeInteger

redisinsight/ui/src/utils/validations.ts:118–121  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

116}
117
118export const errorValidateNegativeInteger = (value: string) => {
119 const negativeIntegerRegexp = /^-?\d+$/
120 return !negativeIntegerRegexp.test(value)
121}
122
123export const validateCertName = (initValue: string) =>
124 initValue.replace(/[^ a-zA-Z0-9!@#$%^&*\-_()[\]]+/gi, '').toString()

Callers 2

disabledApplyBtnFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected