From 0e75d4c0e65f55eea08a010c1b5a947b0c9e4de9 Mon Sep 17 00:00:00 2001 From: syui Date: Sat, 14 Jun 2025 21:09:10 +0900 Subject: [PATCH] fix comment input --- my-blog/static/index.html | 2 +- my-blog/templates/oauth-assets.html | 2 +- oauth/src/config/app.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/my-blog/static/index.html b/my-blog/static/index.html index cfa27aa..a8143ee 100644 --- a/my-blog/static/index.html +++ b/my-blog/static/index.html @@ -1,3 +1,3 @@ - + \ No newline at end of file diff --git a/my-blog/templates/oauth-assets.html b/my-blog/templates/oauth-assets.html index cfa27aa..a8143ee 100644 --- a/my-blog/templates/oauth-assets.html +++ b/my-blog/templates/oauth-assets.html @@ -1,3 +1,3 @@ - + \ No newline at end of file diff --git a/oauth/src/config/app.ts b/oauth/src/config/app.ts index 75cc100..5867468 100644 --- a/oauth/src/config/app.ts +++ b/oauth/src/config/app.ts @@ -53,10 +53,10 @@ function generateCollectionNames(host: string): { comment: string; user: string; } // Extract rkey from current URL -// /posts/xxx.html -> xxx +// /posts/xxx -> xxx function extractRkeyFromUrl(): string | undefined { const pathname = window.location.pathname; - const match = pathname.match(/\/posts\/([^/]+)\.html$/); + const match = pathname.match(/\/posts\/([^/]+)\/?$/); return match ? match[1] : undefined; }