Revision 2deb1814
Added by Andreas Kohlbecker over 3 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/component/registration/RegistrationItemNameAndTypeButtons.java | ||
---|---|---|
12 | 12 |
import java.util.EnumSet; |
13 | 13 |
import java.util.List; |
14 | 14 |
import java.util.UUID; |
15 |
import java.util.regex.Pattern; |
|
15 | 16 |
|
16 | 17 |
import org.apache.log4j.Logger; |
17 | 18 |
|
... | ... | |
139 | 140 |
// TODO when use in other contexts. it might be required to make this configurable. |
140 | 141 |
|
141 | 142 |
String citationString = regDto.getCitation().getCitation(); |
142 |
labelText = labelText.replaceFirst(citationString, "");
|
|
143 |
labelText = labelText.replaceFirst(Pattern.quote(citationString), "");
|
|
143 | 144 |
} |
144 | 145 |
Label label = new Label(labelText, ContentMode.HTML); |
145 | 146 |
|
Also available in: Unified diff
fix #8859 quoting literal string before use in regex function