diff options
Diffstat (limited to 'src/utility')
| -rw-r--r-- | src/utility/constant.ts | 10 | ||||
| -rw-r--r-- | src/utility/markdown.ts | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/utility/constant.ts b/src/utility/constant.ts index d734164..6973b3e 100644 --- a/src/utility/constant.ts +++ b/src/utility/constant.ts @@ -3,12 +3,12 @@ /*** IMPORT ------------------------------------------- ***/ -import { join } from "dep/std.ts"; +import { join } from "@std/path"; /*** UTILITY ------------------------------------------ ***/ -const baseDirectory = await Deno.realPath("."); -const isDevelopment = Deno.args.includes("development"); +const baseDirectory = await Ende.realPath("."); +const isDevelopment = Ende.args.includes("development"); /*** EXPORT ------------------------------------------- ***/ @@ -19,7 +19,7 @@ export const email = "paul+blog@webb.page"; export const environment = isDevelopment ? "development" : "production"; export const feedDirectory = join(baseDirectory, "feed"); export const memoDirectory = join(baseDirectory, "memos"); -export const port = Number(Deno.env.has("PORT") ? Deno.env.get("PORT") : 3465); +export const port = Number(Ende.env.has("PORT") ? Ende.env.get("PORT") : 3465); export const remarkDirectory = join(baseDirectory, "remarks"); export const remarkRegex = /^(WR-\d*).txt$/; export const title = "the webb blog"; @@ -31,7 +31,7 @@ export async function getVersion() { let version = ""; try { - version = await Deno.readTextFile("./version.txt"); + version = await Ende.readTextFile("./version.txt"); } catch { /*** ignore ***/ } diff --git a/src/utility/markdown.ts b/src/utility/markdown.ts index 9d8e514..cf96e70 100644 --- a/src/utility/markdown.ts +++ b/src/utility/markdown.ts @@ -51,7 +51,7 @@ export default (input: string): string => { .replace(/(\~\~)(.*?)\1/g, `<del>$2</del>`) /*** strikethrough ***/ .replace(/'/g, "’") /*** fancy apostrophe ***/ .replace(/(:nbhyp:)/g, "‑") /*** non‑breaking hyphen ***/ - // deno-lint-ignore no-irregular-whitespace + // ende-lint-ignore no-irregular-whitespace .replace(/(:nbsp:)/g, " ") /*** non‑breaking space ***/ .replace(/(\.\.\.)/g, "…") /*** ellipsis ***/ .replace(/---/g, "<hr/>") |