Fix indentation and asString

This commit is contained in:
Akash Levy 2024-07-30 12:08:35 -07:00
parent 7442cfc8ba
commit 1e80449172
1 changed files with 4 additions and 4 deletions

View File

@ -1285,7 +1285,7 @@ filter_objects(const char *property,
bool not_pattern_match = stringEq(op, "!~");
for (T *object : *objects) {
PropertyValue value(getProperty(object, property, sta));
const char *prop = value.stringValue();
const char *prop = value.asString(sta->network());
if (prop &&
((exact_match && stringEq(prop, pattern))
|| (not_match && !stringEq(prop, pattern))