Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix illegal characters in filenames when saving txt #47

Merged
merged 1 commit into from
Jun 30, 2024

Conversation

DeinAlptraum
Copy link
Collaborator

This fixes #46

Comment on lines +34 to +39
std::vector<std::pair<std::string, const char *>> FILENAME_REPLACEMENTS{
std::make_pair(std::string("?:\""), ""),
std::make_pair(std::string("<"), "("),
std::make_pair(std::string(">"), ")"),
std::make_pair(std::string("/\\|*"), "-")};

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn't sure where to put a constant like this one @bohning , would you prefer this in a different place?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it's fine where it is. The whole Creator code could benefit from some refactoring and splitting into multiple files, but for the status now, I think it's okay to put it right there.

Comment on lines +34 to +39
std::vector<std::pair<std::string, const char *>> FILENAME_REPLACEMENTS{
std::make_pair(std::string("?:\""), ""),
std::make_pair(std::string("<"), "("),
std::make_pair(std::string(">"), ")"),
std::make_pair(std::string("/\\|*"), "-")};

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it's fine where it is. The whole Creator code could benefit from some refactoring and splitting into multiple files, but for the status now, I think it's okay to put it right there.

@DeinAlptraum DeinAlptraum merged commit 592df78 into master Jun 30, 2024
5 checks passed
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.

Fix illegal characters in text file names
2 participants