LT-275: Fixing common section selection for inner levels

This commit is contained in:
Bruno Alves de Faria committed 2016-08-15 16:35:50 -03:00
1 parent 9e61bdf300
commit a2c8d0627e
2 files changed
+23 -2

No files matched your search

+1 -1
View File
@@ -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