other components... (2)
This commit is contained in:
8
src/utils/validators.ts.off
Executable file
8
src/utils/validators.ts.off
Executable file
@@ -0,0 +1,8 @@
|
||||
export namespace Validators {
|
||||
const Regs = {
|
||||
link: /(https?|ftp):\/\/(-\.)?([^\s/?#-]+\.?)+(\/[^\s]*)?@iS/,
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
export const LinkValidator = (value, component) => Regs.link.test(value)
|
||||
}
|
||||
Reference in New Issue
Block a user