feat: add trusted URLs

This commit is contained in:
Stavros
2025-04-15 13:44:23 +03:00
parent 7413b3f931
commit e11d14fda0
8 changed files with 57 additions and 15 deletions

View File

@@ -1,2 +1,3 @@
export const capitalize = (s: string) => s.charAt(0).toUpperCase() + s.slice(1);
export const isQueryValid = (value: string) => value.trim() !== "" && value !== "null";
export const escapeRegex = (value: string) => value.replace(/[-\/\\^$.*+?()[\]{}|]/g, "\\$&");