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

Allow stripping unclosed color tags #42549

Merged
merged 3 commits into from
Jul 31, 2020

Conversation

ZhilkinSerg
Copy link
Contributor

@ZhilkinSerg ZhilkinSerg commented Jul 29, 2020

Summary

SUMMARY: None

Purpose of change

Strings with with single <color_X> tag would not be processed and returned as-is by remove_color_tags function.

Describe the solution

Allow stripping a single <color_X> tag from the string.

Testing

  1. Loading of ASCII art with unclosed <color_X> tag does not trigger debug message.

Additional context

#42543

@ZhilkinSerg ZhilkinSerg added [C++] Changes (can be) made in C++. Previously named `Code` <Bugfix> This is a fix for a bug (or closes open issue) labels Jul 29, 2020
@jbytheway
Copy link
Contributor

Would be great to have a unit test for this :).

@ZhilkinSerg ZhilkinSerg force-pushed the allow-stripping-unclosed-color-tags branch from 75bf82d to 8914fa5 Compare July 30, 2020 11:04
@ZhilkinSerg ZhilkinSerg added the Code: Tests Measurement, self-control, statistics, balancing. label Jul 30, 2020
@ZhilkinSerg ZhilkinSerg force-pushed the allow-stripping-unclosed-color-tags branch 2 times, most recently from bfcba3d to b9c0855 Compare July 30, 2020 19:10
@ZhilkinSerg ZhilkinSerg force-pushed the allow-stripping-unclosed-color-tags branch from b9c0855 to 1e03784 Compare July 30, 2020 19:11
@kevingranade kevingranade merged commit 853fa2a into master Jul 31, 2020
@ZhilkinSerg ZhilkinSerg deleted the allow-stripping-unclosed-color-tags branch July 31, 2020 21:04
feinorgh pushed a commit to feinorgh/Cataclysm-DDA that referenced this pull request Aug 1, 2020
* Allow stripping unclosed color tags
* Added tests for remove_color_tags function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Code: Tests Measurement, self-control, statistics, balancing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants