From 8d1e755bbc22d01da7b747c316be0cebd9534d8e Mon Sep 17 00:00:00 2001
From: Santiago Lo Coco <se23m504@technikum-wien.at>
Date: Thu, 9 May 2024 11:48:04 +0200
Subject: [PATCH] Reformat

---
 src/routes/(auth)/register/+page.server.ts | 24 ++++++++++++++--------
 1 file changed, 16 insertions(+), 8 deletions(-)

diff --git a/src/routes/(auth)/register/+page.server.ts b/src/routes/(auth)/register/+page.server.ts
index b500514..7688243 100644
--- a/src/routes/(auth)/register/+page.server.ts
+++ b/src/routes/(auth)/register/+page.server.ts
@@ -19,14 +19,22 @@ import * as z from "zod"
 import type { Actions } from "./$types"
 
 const signUpSchema = z.object({
-  username: z.string().min(6).max(128).regex(
-    /^[a-zA-Z0-9_-]+$/,
-    "Username may only contain letters, numbers, hyphens, and underscores"
-  ),
-  password: z.string().min(8).max(128).regex(
-    /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*()_+}{"':;?/><.,\|]).{8,}$/,
-    "Password requires at least one lowercase letter, one uppercase letter, one digit, and one special character"
-  ),
+  username: z
+    .string()
+    .min(6)
+    .max(128)
+    .regex(
+      /^[a-zA-Z0-9_-]+$/,
+      "Username may only contain letters, numbers, hyphens, and underscores"
+    ),
+  password: z
+    .string()
+    .min(8)
+    .max(128)
+    .regex(
+      /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*()_+}{"':;?/><.,\|]).{8,}$/,
+      "Password requires at least one lowercase letter, one uppercase letter, one digit, and one special character"
+    ),
 })
 
 export let actions: Actions = {