Skip to content

Commit

Permalink
Update MagicFilter.java
Browse files Browse the repository at this point in the history
  • Loading branch information
rac021 authored Nov 13, 2017
1 parent d9d674a commit 4480781
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/org/inra/yedgen/splitter/MagicFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,11 @@ private static List<List<String>> peekDates ( String stringDates ,

if ( range == null ) {

List<Integer> dates = Stream.of(stringDates.split("_") )
List<Integer> dates = Stream.of(stringDates.replace("(" , "")
.replace(")" , "")
.replace("'" , "")
.replace("\"", "")
.split("_") )
.filter ( s -> ! s.isEmpty() )
.map(s -> Integer.parseInt(s))
.collect(toList()) ;
Expand Down

0 comments on commit 4480781

Please sign in to comment.