Mark the strings for the metadata and label commands as used.

metadata
Edgar Velazquez-Armendariz 2013-02-25 15:35:17 -05:00
parent bd55638624
commit f514bc4a53
2 changed files with 4 additions and 4 deletions

View File

@ -293,8 +293,8 @@ public:
std::string key = boost::to_lower_copy(keys[i]);
key.erase(std::remove_if(key.begin(), key.end(), ::isspace), key.end());
if ((boost::starts_with(key, "tag('") && boost::ends_with(key, "')")) ||
(boost::starts_with(key, "text(") && boost::ends_with(key, ")")))
if ((boost::starts_with(key, "metadata['") && boost::ends_with(key, "']")) ||
(boost::starts_with(key, "label[") && boost::ends_with(key, "]")))
props.markQueried(keys[i]);
}

View File

@ -187,8 +187,8 @@ public:
std::string key = boost::to_lower_copy(keys[i]);
key.erase(std::remove_if(key.begin(), key.end(), ::isspace), key.end());
if ((boost::starts_with(key, "tag('") && boost::ends_with(key, "')")) ||
(boost::starts_with(key, "text(") && boost::ends_with(key, ")")))
if ((boost::starts_with(key, "metadata['") && boost::ends_with(key, "']")) ||
(boost::starts_with(key, "label[") && boost::ends_with(key, "]")))
props.markQueried(keys[i]);
}