]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/forms/form-validators/host.validator.ts
Use typescript standard and lint all files
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / forms / form-validators / host.validator.ts
index ec417e0795601cd1981ba21963a8ec260d7ecc3d..03e810fdb902c2e23bb7359d2741aff6a8025c10 100644 (file)
@@ -1,14 +1,14 @@
-import { FormControl } from '@angular/forms';
+import { FormControl } from '@angular/forms'
 
-export function validateHost(c: FormControl) {
+export function validateHost (c: FormControl) {
   // Thanks to http://stackoverflow.com/a/106223
   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])$'
-  );
+  )
 
   return HOST_REGEXP.test(c.value) ? null : {
     validateHost: {
       valid: false
     }
-  };
+  }
 }