Compare commits

...

2 Commits

Author SHA1 Message Date
Tom Moor 10aa4f4fac fix: Fractional smart text replacements also lose preceding space 2025-02-25 19:58:48 -05:00
Tom Moor 66813bad90 chore: Ensure no cache of root index page 2025-02-25 19:29:12 -05:00
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -3,8 +3,8 @@ import { InputRule } from "@shared/editor/lib/InputRule";
const rightArrow = new InputRule(/->$/, "→");
const emdash = new InputRule(/--$/, "—");
const oneHalf = new InputRule(/(?:^|\s)1\/2$/, "½");
const threeQuarters = new InputRule(/(?:^|\s)3\/4$/, "¾");
const oneHalf = new InputRule(/(?:^|\s)(1\/2)$/, "½");
const threeQuarters = new InputRule(/(?:^|\s)(3\/4)$/, "¾");
const copyright = new InputRule(/\(c\)$/, "©️");
const registered = new InputRule(/\(r\)$/, "®️");
const trademarked = new InputRule(/\(tm\)$/, "™️");
+4
View File
@@ -112,6 +112,10 @@ export const renderApp = async (
<script type="module" nonce="${ctx.state.cspNonce}" src="${viteHost}/static/${entry}"></script>
`;
// Ensure no caching is performed
ctx.response.set("Cache-Control", "no-cache, must-revalidate");
ctx.response.set("Expires", "-1");
ctx.body = page
.toString()
.replace(/\{env\}/g, environment)