Convert colons and underscores to dashes in url slugs

This commit is contained in:
Sam Becker 2025-09-07 16:33:27 -05:00
parent 71434c780b
commit ea7ede7608

View File

@ -9,7 +9,7 @@ export const PHOTO_DEFAULT_LIMIT = 100;
// These must mirror utility/string.ts parameterization // These must mirror utility/string.ts parameterization
const CHARACTERS_TO_REMOVE = [',', '/']; const CHARACTERS_TO_REMOVE = [',', '/'];
const CHARACTERS_TO_REPLACE = ['+', '&', '|', ' ']; const CHARACTERS_TO_REPLACE = ['+', '&', '|', ':', '_', ' '];
const parameterizeForDb = (field: string) => const parameterizeForDb = (field: string) =>
`REGEXP_REPLACE( `REGEXP_REPLACE(