From 8e6999501b3ca0a64d509747a80ab8fec24c67d8 Mon Sep 17 00:00:00 2001 From: Nykx Date: Mon, 9 Mar 2026 11:41:47 -0600 Subject: [PATCH] Enhance character replacements in convert-chatgpt-export.js Added replacements for various characters including fullwidth symbols and quotation marks. --- convert-chatgpt-export.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/convert-chatgpt-export.js b/convert-chatgpt-export.js index b1f11af..8349f82 100755 --- a/convert-chatgpt-export.js +++ b/convert-chatgpt-export.js @@ -100,7 +100,15 @@ function getTitle(conversation) { .replace(/(\S): /, "$1 - ") .replaceAll(":", "-") .replaceAll("/", "\u29f8") // big solidus - .replaceAll("\\", "\u29f9"); // big reverse solidus + .replaceAll("\\", "\u29f9") // big reverse solidus + .replaceAll("?", "\uff1f") // fullwidth question mark + .replaceAll("*", "\uff0a") // fullwidth asterisk + .replaceAll('"', "\u201c") // left double quotation mark + .replaceAll("<", "\u276c") // medium left-pointing angle bracket + .replaceAll(">", "\u276d") // medium right-pointing angle bracket + .replaceAll("|", "\u2758") // light vertical bar + .replace(/[\r\n]+/g, " ") // newlines → space + .trim(); } function postProcess(msg, chatgpt) {