Skip to content

Commit

Permalink
Fix one issue leading to compilation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
GenieTim committed Oct 1, 2023
1 parent 4278a6e commit 7b85f5c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,20 @@ public StringToDateQueryParser(String code) {
LocalDate date = LocalDate.of(Integer.parseInt(m.group(1)), Integer.parseInt(m.group(2)), Integer.parseInt(m.group(3)));
return new DateTuple(date);
});
put("(\\d{4})[/,\\.\\-]{1}(\\d{1,2})[/,\\.\\-]{1}(\\d{1,2}) ?\\- ?(\\d{4})[/,\\.\\-]{1}(\\d{1,2})[/,\\.\\-]{1}(\\d{1,2})", m -> {
LocalDate startDate = LocalDate.of(Integer.parseInt(m.group(1)), Integer.parseInt(m.group(2)), Integer.parseInt(m.group(3)));
LocalDate endDate = LocalDate.of(Integer.parseInt(m.group(4)), Integer.parseInt(m.group(5)), Integer.parseInt(m.group(6)));
return new DateTuple(startDate, endDate);
});
put("(\\d{1,2})[/,\\.\\-]{1}(\\d{1,2})[/,\\.\\-]{1}(\\d{4})", m -> {
LocalDate date = LocalDate.of(Integer.parseInt(m.group(3)), Integer.parseInt(m.group(2)), Integer.parseInt(m.group(1)));
return new DateTuple(date);
});
put("(\\d{1,2})[/,\\.\\-]{1}(\\d{1,2})[/,\\.\\-]{1}(\\d{4}) ?\\- ?(\\d{1,2})[/,\\.\\-]{1}(\\d{1,2})[/,\\.\\-]{1}(\\d{4})", m -> {
LocalDate startDate = LocalDate.of(Integer.parseInt(m.group(3)), Integer.parseInt(m.group(2)), Integer.parseInt(m.group(1)));
LocalDate endDate = LocalDate.of(Integer.parseInt(m.group(6)), Integer.parseInt(m.group(4)), Integer.parseInt(m.group(5)));
return new DateTuple(startDate, endDate);
});
}};

for (Map.Entry<String, MatchInterpreter> entry : regexers.entrySet()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -926,10 +926,6 @@ public void adaptJpanelToSpecimenBrowser(SpecimenBrowser slb) {
setStatusMessage("Found " + slb.getRowCount() + " matching specimens");
}

public void setSpecimenBrowseList(Specimen searchCriteria) {
this.setSpecimenBrowseList(searchCriteria, 0, 0);
}

/**
* This method initializes jMenuItemBrowseSpecimens
*
Expand Down

0 comments on commit 7b85f5c

Please sign in to comment.