Skip to content

Enhance character replacements in convert-chatgpt-export.js#1

Open
Nykx wants to merge 1 commit into
mk12:mainfrom
Nykx:main
Open

Enhance character replacements in convert-chatgpt-export.js#1
Nykx wants to merge 1 commit into
mk12:mainfrom
Nykx:main

Conversation

@Nykx
Copy link
Copy Markdown

@Nykx Nykx commented Mar 9, 2026

Added replacements for various characters including fullwidth symbols, quotation marks, new lines and leading/trailing spaces.

Added replacements for various characters including fullwidth symbols and quotation marks.
@mk12
Copy link
Copy Markdown
Owner

mk12 commented Mar 14, 2026

The reason I replaced "/" for example is that it's not allowed in a filename since it's the path separator. But all these other ones (question mark, quotes, etc.) are allowed in filenames, at least on Linux and macOS.

@Nykx
Copy link
Copy Markdown
Author

Nykx commented Mar 15, 2026

Ah, yes, I ran into this specifically on windows, which has a larger list of prohibited characters. For Linux and macOS I agree it's unnecessary - and probably visually annoying to have fullwidth characters when not needed. For windows, the script errored and stopped when hitting a question mark in a chat title. I'm totally fine if you want to keep the code targeted for Linux and macOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants