From f6587c91f32e219b8a992588778800cd087f3f40 Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Thu, 1 Oct 2020 10:30:26 +0200 Subject: [PATCH] added comparison to a char that seems - but it is not --- .../eu/dnetlib/dhp/actionmanager/project/PrepareProgramme.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/PrepareProgramme.java b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/PrepareProgramme.java index b7f6237de0..39e23b2310 100644 --- a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/PrepareProgramme.java +++ b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/PrepareProgramme.java @@ -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(); }