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

Function isValidURL

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

Source from the content-addressed store, hash-verified

714 return /^-?\d*\.?\d+$/.test(`${value}`)
715 },
716 isValidURL(value: any) {
717 const regex = /^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/i
718 return regex.test(value)
719 },
720 loadScriptPromise(url: string) {
721 return new Promise((resolve) => {
722 const cb = function () {

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…