mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-09 14:58:37 -05:00
Fix issue that would cause created identifiers to be all dashes
This commit is contained in:
@@ -868,7 +868,7 @@ std::string makeIdentifier(std::string s) {
|
||||
std::replace_if(
|
||||
s.begin(),
|
||||
s.end(),
|
||||
[](char c) { return std::ispunct(c) == 0; },
|
||||
[](char c) { return std::ispunct(c) != 0; },
|
||||
'-'
|
||||
);
|
||||
std::replace(s.begin(), s.end(), ' ', '_');
|
||||
|
||||
Reference in New Issue
Block a user