Convert colons and underscores to dashes in url slugs
This commit is contained in:
parent
71434c780b
commit
ea7ede7608
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user