@celo/base"io"

Module: "io"

Index

Variables

Functions

Variables

Const URL_REGEX

URL_REGEX: RegExp‹› = new RegExp( /((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%\/.\w-_])?\??(?:[-+=&;%@.\w_])#?(?:[.!\/\\w]*))?)/ )

Defined in packages/sdk/base/src/io.ts:2

Functions

Const isValidUrl

isValidUrl(url: string): boolean

Defined in packages/sdk/base/src/io.ts:6

Parameters:

Name Type
url string

Returns: boolean