Add string comments
This commit is contained in:
parent
27b0b4965a
commit
38768de87c
@ -7,6 +7,7 @@ import { APP_DEFAULT_SORT_BY, SortBy } from '../sort';
|
|||||||
export const GENERATE_STATIC_PARAMS_LIMIT = 1000;
|
export const GENERATE_STATIC_PARAMS_LIMIT = 1000;
|
||||||
export const PHOTO_DEFAULT_LIMIT = 100;
|
export const PHOTO_DEFAULT_LIMIT = 100;
|
||||||
|
|
||||||
|
// These must mirror utility/string.ts parameterization
|
||||||
const CHARACTERS_TO_REMOVE = [',', '/'];
|
const CHARACTERS_TO_REMOVE = [',', '/'];
|
||||||
const CHARACTERS_TO_REPLACE = ['+', '&', '|', ' '];
|
const CHARACTERS_TO_REPLACE = ['+', '&', '|', ' '];
|
||||||
|
|
||||||
|
|||||||
@ -27,6 +27,7 @@ export const parameterize = (
|
|||||||
// Remove punctuation
|
// Remove punctuation
|
||||||
.replaceAll(/['"!@#$%^*()=[\]{};:/?,<>\\/`~]/gi, '')
|
.replaceAll(/['"!@#$%^*()=[\]{};:/?,<>\\/`~]/gi, '')
|
||||||
// Removes non-alphanumeric characters, if configured
|
// Removes non-alphanumeric characters, if configured
|
||||||
|
// (breaks i18m)
|
||||||
.replaceAll(
|
.replaceAll(
|
||||||
shouldRemoveNonAlphanumeric
|
shouldRemoveNonAlphanumeric
|
||||||
? /([^a-z0-9-])/gi
|
? /([^a-z0-9-])/gi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user