mirror of
https://github.com/hex248/fonts.git
synced 2026-02-07 18:23:06 +00:00
port 1553
This commit is contained in:
@@ -20,13 +20,11 @@ const escapeHtml = (value: string) =>
|
|||||||
|
|
||||||
const escapeAttr = (value: string) => escapeHtml(value);
|
const escapeAttr = (value: string) => escapeHtml(value);
|
||||||
|
|
||||||
const normalizeFamily = (value: string) => value.replace(/^['"]|['"]$/g, "").trim();
|
const normalizeFamily = (value: string) =>
|
||||||
|
value.replace(/^['"]|['"]$/g, "").trim();
|
||||||
|
|
||||||
const slugify = (value: string) =>
|
const slugify = (value: string) =>
|
||||||
value
|
value.toLowerCase().replace(/\s+/g, " ").trim();
|
||||||
.toLowerCase()
|
|
||||||
.replace(/\s+/g, " ")
|
|
||||||
.trim();
|
|
||||||
|
|
||||||
const parseFontFamilies = (css: string) => {
|
const parseFontFamilies = (css: string) => {
|
||||||
const families = new Set<string>();
|
const families = new Set<string>();
|
||||||
@@ -124,7 +122,7 @@ const cssRoutes = async () => {
|
|||||||
|
|
||||||
await cssRoutes();
|
await cssRoutes();
|
||||||
|
|
||||||
const port = Number(Bun.env.PORT ?? 3000);
|
const port = Number(Bun.env.PORT ?? 1553);
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
fetch: app.fetch,
|
fetch: app.fetch,
|
||||||
|
|||||||
Reference in New Issue
Block a user