We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if (StringUtils.isEmpty(bounds[0])) {// nums = Long.valueOf(bounds[1]); from = (size > nums) ? size - nums : 0; to = size - 1; } else { from = Long.valueOf(bounds[0]); to = (bounds.length == 2 ? Long.valueOf(bounds[1]) : 0); }
private boolean check(String pointerStr) { //System.out.println(pointerStr); if(pointerStr.startsWith("bytes=")&&pointerStr.split("=").length==2) { String value=pointerStr.split("=")[1]; for(String sp:value.split(",")) { if(!sp.matches("(^-\\d+)|(^\\d+(?:-?|-\\d*))")) return false; } }else { return false; } return true; }
The text was updated successfully, but these errors were encountered:
Thank you for reporting this! I'll consider to add this in the next release (but there is not ETA for it yet).
Sorry, something went wrong.
@heruan has this been merged?
No branches or pull requests
> for last n bytes
> check for range byets could be added too, if the arg is wrong, the range list should be empty but no parse exception.
The text was updated successfully, but these errors were encountered: