feat: admin log page

This commit is contained in:
2025-01-25 00:00:04 +01:00
parent 979627ca2a
commit 00e7820462
8 changed files with 73 additions and 15 deletions

View File

@@ -13,6 +13,15 @@ export function safeFileName(inputString: string): string {
return fileName;
}
export function toUrlSafeString(input: string): string {
return input
.trim() // Remove leading and trailing whitespace
.toLowerCase() // Convert to lowercase
.replace(/[^a-z0-9\s-]/g, "") // Remove non-alphanumeric characters except spaces and hyphens
.replace(/\s+/g, "-") // Replace spaces with hyphens
.replace(/-+/g, "-"); // Remove consecutive hyphens
}
export function extractHashTags(inputString: string) {
const hashtags = [];