mirror of
https://github.com/nasa/trick.git
synced 2025-02-06 10:59:27 +00:00
parent
8ef78f4197
commit
83652ad811
@ -11,6 +11,10 @@ std::string sanitize(const std::string& text) {
|
|||||||
for (char c : {'<', '>', ' ', ',', ':', '*', '[', ']'}) {
|
for (char c : {'<', '>', ' ', ',', ':', '*', '[', ']'}) {
|
||||||
std::replace(result.begin(), result.end(), 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 ;
|
return result ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user