LT-275: Fixing common section selection for inner levels
This commit is contained in:
1 parent
9e61bdf300
commit
a2c8d0627e
2 files changed
+23
-2
No files matched your search
@@ -7,7 +7,7 @@ OHIF.string = {};
|
||||
// Search for some string inside any object or array
|
||||
OHIF.string.search = (object, query, property=null, result=[]) => {
|
||||
// Create the search pattern
|
||||
const pattern = new RegExp($.trim(query).replace(/\s/gi, '|'), 'i');
|
||||
const pattern = new RegExp($.trim(query), 'i');
|
||||
|
||||
_.each(object, item => {
|
||||
// Stop here if item is empty
|
||||
|
||||
Reference in new issue
Block a user