memi-board 0.55.1 → 0.55.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -146,7 +146,7 @@ function St(e, t, n, r, i) {
146
146
  return r;
147
147
  }
148
148
  function Ct(e, t, n, r, i) {
149
- return r ? !t || t[n] !== r ? r : St(e, i, n, r, t.locale) : "";
149
+ return r ? !t || t[n]?.trim() !== r.trim() ? r : St(e, i, n, r, t.locale) : "";
150
150
  }
151
151
  function wt(e, t) {
152
152
  return Ct(e.i18n, e.i18nSource, "title", e.title ?? "", t);
@@ -706,7 +706,7 @@ function Sn(e) {
706
706
  function Cn(e, t = []) {
707
707
  let n = e.match(/<img\b[^>]*\bsrc=["']([^"']+)["']/i), r = e.match(/<iframe\b[^>]*\bsrc=["']([^"']+)["']/i), i = t.find((e) => e.type.startsWith("image/"))?.url, a = t.find((e) => e.type.startsWith("video/"))?.url, o = r ? bn(r[1]) : a, s = o ? xn(o) : void 0, c = n ? bn(n[1]) : i || (s ? `https://i.ytimg.com/vi/${s}/hqdefault.jpg` : void 0);
708
708
  return {
709
- summary: e.replace(/<style[\s\S]*?<\/style>/gi, " ").replace(/<script[\s\S]*?<\/script>/gi, " ").replace(/<br\s*\/?>/gi, "\n").replace(/<\/(p|div|li|h[1-6]|blockquote)>/gi, "\n").replace(/<[^>]+>/g, " ").replace(/&nbsp;/g, " ").replace(/&amp;/g, "&").replace(/[^\S\n]+/g, " ").replace(/ *\n */g, "\n").replace(/\n{2,}/g, "\n").trim().slice(0, 160),
709
+ summary: e.replace(/<style[\s\S]*?<\/style>/gi, " ").replace(/<script[\s\S]*?<\/script>/gi, " ").replace(/<br\s*\/?>/gi, "\n").replace(/<\/(p|div|li|h[1-6]|blockquote)>/gi, "\n").replace(/<[^>]+>/g, " ").replace(/&nbsp;/g, " ").replace(/&amp;/g, "&").replace(/[^\S\n]+/g, " ").replace(/ *\n */g, "\n").replace(/\n{2,}/g, "\n").trim().slice(0, 160).trimEnd(),
710
710
  ...c ? { previewImage: c } : {},
711
711
  ...o ? { videoUrl: o } : {}
712
712
  };
@@ -3225,6 +3225,14 @@ function Bi(e) {
3225
3225
  //#endregion
3226
3226
  //#region src/data/versionHistory.ts
3227
3227
  var Vi = [
3228
+ {
3229
+ version: "0.55.2",
3230
+ date: "2026-11-08",
3231
+ highlights: ["목록에서 제목만 번역되고 요약은 원문으로 남던 문제를 고쳤어요", "이미 저장된 글도 다시 번역하지 않고 번역된 요약이 보여요"],
3232
+ highlightsEn: ["Fixed list summaries staying in the original language while the title was translated", "Posts saved earlier show their translated summary without translating again"],
3233
+ note: "Firestore 규칙·인덱스 변경은 없어요.",
3234
+ noteEn: "No Firestore rule or index changes are needed."
3235
+ },
3228
3236
  {
3229
3237
  version: "0.55.1",
3230
3238
  date: "2026-11-06",
@@ -4154,7 +4162,7 @@ function Xi(e) {
4154
4162
  let t = e.i18nSource;
4155
4163
  if (!t || !e.i18n) return !1;
4156
4164
  let n = e.title?.trim() || gn(e.content);
4157
- return (t.title ?? "") === n ? !hn(e.content) || e.contentI18nSource?.hash === pt(e.content) : !1;
4165
+ return (t.title ?? "") !== n || (t.summary ?? "").trim() !== (e.summary ?? "").trim() ? !1 : !hn(e.content) || e.contentI18nSource?.hash === pt(e.content);
4158
4166
  }
4159
4167
  async function m() {
4160
4168
  c.value = !0, f.value = "";