Revision f4935f27
Added by Patrick Plitzner about 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/GroupSelectionDialog.java | ||
---|---|---|
16 | 16 |
import org.eclipse.swt.widgets.Shell; |
17 | 17 |
|
18 | 18 |
import eu.etaxonomy.cdm.api.service.IGroupService; |
19 |
import eu.etaxonomy.cdm.common.CdmUtils; |
|
19 | 20 |
import eu.etaxonomy.cdm.model.common.Group; |
20 | 21 |
import eu.etaxonomy.cdm.persistence.dto.UuidAndTitleCache; |
21 | 22 |
import eu.etaxonomy.taxeditor.newWizard.AbstractNewEntityWizard; |
... | ... | |
62 | 63 |
model = new ArrayList<UuidAndTitleCache<Group>>(); |
63 | 64 |
|
64 | 65 |
for(Group group : groups){ |
65 |
if (pattern == null || group.getName().matches("(?i)"+pattern + ".*")){
|
|
66 |
if (pattern == null || group.getName().matches("(?i)"+CdmUtils.quoteRegExWithWildcard(pattern) + ".*")){
|
|
66 | 67 |
model.add(new UuidAndTitleCache<Group>(Group.class, group.getUuid(), group.getId(), String.format("%s", group.getName()))); |
67 | 68 |
} |
68 | 69 |
} |
Also available in: Unified diff
ref #8041 Use CdmUtils.quoteRegExWithWildcard(pattern) for search string