]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/forms/form-validators/host.validator.ts
Add email to users
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / forms / form-validators / host.validator.ts
index ea3e43cb1186812cb5c16b500c98b53ff4201e76..ec417e0795601cd1981ba21963a8ec260d7ecc3d 100644 (file)
@@ -2,7 +2,7 @@ import { FormControl } from '@angular/forms';
 
 export function validateHost(c: FormControl) {
   // Thanks to http://stackoverflow.com/a/106223
-  let HOST_REGEXP = new RegExp(
+  const HOST_REGEXP = new RegExp(
     '^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$'
   );