fix: trailing spaces giphy (#449)

This commit is contained in:
Jayvin Hernandez 2023-08-29 15:25:26 -07:00 committed by GitHub
parent 86c3e780d1
commit 72e24a8b86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -6,8 +6,8 @@ export type GfyCatWords = {
};
export async function importWords(): Promise<GfyCatWords> {
const adjectives = (await readFile('public/adjectives.txt', 'utf-8')).split('\n');
const animals = (await readFile('public/animals.txt', 'utf-8')).split('\n');
const adjectives = (await readFile('public/adjectives.txt', 'utf-8')).split('\n').map((x) => x.trim());
const animals = (await readFile('public/animals.txt', 'utf-8')).split('\n').map((x) => x.trim());
return {
adjectives,