8 changed files with 52 additions and 15 deletions
@ -1,7 +1,7 @@
@@ -1,7 +1,7 @@
|
||||
window.__CONFIG__ = { |
||||
// url must NOT end with a slash
|
||||
VITE_CORS_PROXY_URL: "", |
||||
VITE_CORS_PROXY_URL: "https://rough.isra.workers.dev", |
||||
|
||||
VITE_TMDB_API_KEY: "b030404650f279792a8d3287232358e3", |
||||
VITE_OMDB_API_KEY: "aa0937c0" |
||||
VITE_OMDB_API_KEY: "aa0937c0", |
||||
}; |
||||
|
@ -0,0 +1,7 @@
@@ -0,0 +1,7 @@
|
||||
export function normalizeTitle(title: string): string { |
||||
return title |
||||
.trim() |
||||
.toLowerCase() |
||||
.replace(/['":]/g, "") |
||||
.replace(/[^a-zA-Z0-9]+/g, "_"); |
||||
} |
Loading…
Reference in new issue