Skip to content

Variable: url

ts
const url: Validator<string>;

URL validation / URL验证

Example

ts
url('https://example.com') // => { isValid: true }
url('not-a-url') // => { isValid: false, message: 'Invalid URL format / URL格式无效' }

Since

1.0.0

Released under the MIT License.