Fixed string parsing and substituion bugs isn substitudeEnvVars(..)
This commit is contained in:
parent
302f625ec7
commit
490b9b0e0e
@ -1249,15 +1249,19 @@ namespace State_Utils
|
||||
if (str[pos]=='"' || str[pos]=='\'')
|
||||
{
|
||||
std::string::size_type start_quote = pos;
|
||||
++pos;
|
||||
++pos; // skip over first quote
|
||||
pos = str.find(str[start_quote], pos);
|
||||
|
||||
if (pos!=std::string::npos)
|
||||
{
|
||||
++pos; // skip over second quote
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
std::string::size_type start_var = pos;
|
||||
++pos;
|
||||
pos = str.find_first_not_of("ABCDEFGHIJKLMNOPQRTSUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_", pos);
|
||||
std::string var_str;
|
||||
if (pos != std::string::npos)
|
||||
{
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user