mirror of
https://github.com/nasa/trick.git
synced 2025-01-29 15:43:57 +00:00
parent
8ef78f4197
commit
83652ad811
@ -11,6 +11,10 @@ std::string sanitize(const std::string& text) {
|
||||
for (char c : {'<', '>', ' ', ',', ':', '*', '[', ']'}) {
|
||||
std::replace(result.begin(), result.end(), c, '_');
|
||||
}
|
||||
// Catches templates with negative default values (iss #660)
|
||||
for (char c : {'-'}) {
|
||||
std::replace(result.begin(), result.end(), c, 'n');
|
||||
}
|
||||
return result ;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user