Take into consideration exclñudeBots from query on short URLs row

This commit is contained in:
Alejandro Celaya
2022-12-23 20:00:59 +01:00
parent 80cea91339
commit 1d6f4bf5db
7 changed files with 99 additions and 22 deletions

View File

@@ -26,3 +26,7 @@ export const nonEmptyValueOrNull = <T>(value: T): T | null => (isEmpty(value) ?
export const capitalize = <T extends string>(value: T): string => `${value.charAt(0).toUpperCase()}${value.slice(1)}`;
export const equals = (value: any) => (otherValue: any) => value === otherValue;
export type BooleanString = 'true' | 'false';
export const parseBooleanToString = (value: boolean): BooleanString => (value ? 'true' : 'false');