Skip to content

Commit

Permalink
Support Range Matching by Attributes.matches(Attributes keys,..) dcm4…
Browse files Browse the repository at this point in the history
  • Loading branch information
gunterze authored and hczedik committed Jun 30, 2017
1 parent f11d1e1 commit 00dcd92
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dcm4che-core/src/main/java/org/dcm4che3/data/Attributes.java
Original file line number Diff line number Diff line change
Expand Up @@ -2944,8 +2944,6 @@ private boolean matches(String privateCreator, int tag, VR vr,
boolean ignoreCase = ignorePNCase && vr == VR.PN;
for (String keyVal : keyVals) {
DateRange dateRange = null;
if (vr == VR.PN)
keyVal = new PersonName(keyVals[0]).toString();
switch (vr) {
case PN:
keyVal = new PersonName(keyVals[0]).toString();
Expand All @@ -2954,6 +2952,7 @@ private boolean matches(String privateCreator, int tag, VR vr,
case DT:
case TM:
dateRange = toDateRange(keyVal, vr);
break;
}

if (StringUtils.containsWildCard(keyVal)) {
Expand Down

0 comments on commit 00dcd92

Please sign in to comment.