From ea7ede76088fbcfa883acd02c7ca5cedd1ea0990 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Sun, 7 Sep 2025 16:33:27 -0500 Subject: [PATCH] Convert colons and underscores to dashes in url slugs --- src/photo/db/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/photo/db/index.ts b/src/photo/db/index.ts index f8adc6ba..49d9cf84 100644 --- a/src/photo/db/index.ts +++ b/src/photo/db/index.ts @@ -9,7 +9,7 @@ export const PHOTO_DEFAULT_LIMIT = 100; // These must mirror utility/string.ts parameterization const CHARACTERS_TO_REMOVE = [',', '/']; -const CHARACTERS_TO_REPLACE = ['+', '&', '|', ' ']; +const CHARACTERS_TO_REPLACE = ['+', '&', '|', ':', '_', ' ']; const parameterizeForDb = (field: string) => `REGEXP_REPLACE(