Skip to content

Commit

Permalink
fix regex to parse negative step in pixel cutouts correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
pdowler committed May 8, 2024
1 parent 54c7582 commit 8574990
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cadc-soda-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ sourceCompatibility = 1.8

group = 'org.opencadc'

version = '1.2.3'
version = '1.2.4'

description = 'OpenCADC SODA server library'
def git_url = 'https://github.com/opencadc/dal'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public class ExtensionSliceFormat implements Format<ExtensionSlice> {
private static final String PIXEL_AXIS_DELIMITER = ",";
private static final String PIXEL_VALUE_DELIMITER = ":";

private final Pattern singleRangePattern = Pattern.compile("\\*?(\\d+)?(:\\d+)?(:\\d*)?");
private final Pattern singleRangePattern = Pattern.compile("\\*?(\\d+)?(:\\d+)?(:-?\\d*)?");

public ExtensionSliceFormat() {
}
Expand Down

0 comments on commit 8574990

Please sign in to comment.