Identify DOM references by their prefix ('dom.<...>') and mark them as such when analyzing the command line

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2020-05-08 17:05:04 +02:00
parent 9ae3ace109
commit 13f1de2c49

View file

@ -522,6 +522,10 @@ void CLI::identifyFilter ()
a.tag ("KEYWORD"); a.tag ("KEYWORD");
} }
else if (raw.rfind("dom.",0) == 0)
{
a.tag ("DOM");
}
else else
{ {
a.tag ("FILTER"); a.tag ("FILTER");
@ -614,8 +618,7 @@ std::vector <std::string> CLI::getDomReferences () const
for (auto &arg : _args) for (auto &arg : _args)
{ {
if (arg.hasTag ("TAG") && if (arg.hasTag ("DOM"))
arg.hasTag ("FILTER"))
{ {
references.emplace_back (arg.attribute ("raw")); references.emplace_back (arg.attribute ("raw"));
} }