svelte-form/rule/url

Svelte Form validation rules module.

(require("svelte-form/rule/url"))(msg) → {boolean|string}

Source:

URL rule

Parameters:
Name Type Description
msg string

error message.

Returns:

true when valid, error message otherwise.

Type
boolean | string
Source: