1
0
Fork 0

added comparison to a char that seems - but it is not

This commit is contained in:
Miriam Baglioni 2020-10-01 10:30:26 +02:00
parent 7e73bb88b3
commit f6587c91f3
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ public class PrepareProgramme {
if (current.trim().length() > parent.length()
&& current.toLowerCase().trim().substring(0, parent.length()).equals(parent)) {
current = current.substring(parent.length() + 1);
if (current.trim().charAt(0) == '-') {
if (current.trim().charAt(0) == '-' || current.trim().charAt(0) =='') {
current = current.trim().substring(1).trim();
}