CLI
- ::unsweetenPatterns no longer clobbers non-FILTER args.
This commit is contained in:
@@ -812,6 +812,8 @@ void CLI::unsweetenPatterns ()
|
||||
std::vector <A> reconstructed;
|
||||
std::vector <A>::iterator a;
|
||||
for (a = _args.begin (); a != _args.end (); ++a)
|
||||
{
|
||||
if (a->hasTag ("FILTER"))
|
||||
{
|
||||
Nibbler n (a->attribute ("raw"));
|
||||
std::string pattern;
|
||||
@@ -838,6 +840,9 @@ void CLI::unsweetenPatterns ()
|
||||
else
|
||||
reconstructed.push_back (*a);
|
||||
}
|
||||
else
|
||||
reconstructed.push_back (*a);
|
||||
}
|
||||
|
||||
_args = reconstructed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user