From cfbd39753764e0ad0bea7f18714662878806559a Mon Sep 17 00:00:00 2001 From: Henry Dollman Date: Fri, 27 Dec 2024 19:00:40 -0500 Subject: [PATCH] trim whitespace from school names --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 64b4337..a67b396 100644 --- a/src/index.ts +++ b/src/index.ts @@ -78,8 +78,8 @@ export const app = new Elysia() try { const json = (await req.json()).map((school: Record) => ({ slug: school.slug, - name: school.name, - long: school.long_name, + name: school.name?.trim(), + long: school.long_name?.trim(), })) const data = JSON.stringify(json) cache.set(store.cacheKey, data)