LT-275 Implementing search for measure labels
This commit is contained in:
1 parent
f5a64574cc
commit
9d8c039ffc
6 files changed
+100
-18
No files matched your search
@@ -22,9 +22,11 @@ OHIF.string.search = (object, query, property=null, result=[]) => {
|
||||
if (_.isString(value) && pattern.test(value)) {
|
||||
// Add the current item to the result
|
||||
result.push(item);
|
||||
} else if (_.isObject(value)) {
|
||||
}
|
||||
|
||||
if (_.isObject(item)) {
|
||||
// Search recursively the item if the current item is an object
|
||||
OHIF.string.search(value, query, property, result);
|
||||
OHIF.string.search(item, query, property, result);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user