mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-29 23:39:26 -05:00
Fix issue that would cause created identifiers to be all dashes
This commit is contained in:
+1
-1
@@ -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