MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / isValidNumber

Function isValidNumber

frontend/common/utils/utils.tsx:713–715  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

711 isSaas: () => selectBuildVersion(getStore().getState())?.backend?.is_saas,
712
713 isValidNumber(value: any) {
714 return /^-?\d*\.?\d+$/.test(`${value}`)
715 },
716 isValidURL(value: any) {
717 const regex = /^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/i
718 return regex.test(value)

Callers

nothing calls this directly

Calls 1

testMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…