Typescript Terminato! Funziona!

This commit is contained in:
paolo
2018-11-11 19:27:04 +01:00
parent 6522a88eb7
commit 0e383f3493
22 changed files with 636 additions and 184 deletions

9
src/utils/validators.ts Normal file
View File

@@ -0,0 +1,9 @@
export namespace Validators {
const Regs = {
link: /(https?|ftp):\/\/(-\.)?([^\s/?\.#-]+\.?)+(\/[^\s]*)?$@iS/
}
export const LinkValidator = (value, component) => {
return Regs.link.test(value)
}
}