Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jacocoTestReport {
}

jacoco {
toolVersion = "0.8.7-SNAPSHOT" //https://github.com/gradle/gradle/issues/15038
toolVersion = "0.8.7"
}

spotbugsMain {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ protected void addDeltaTokenOption(@Nonnull final String value, @Nonnull final S
* ?token=thetoken (onedrive)
* delta(token='thetoken') (formal OData function usage)
*/
private static Pattern pattern = Pattern.compile("(?i)(?>\\$?delta)?token=['\"]?([\\w-\\.]+)");
private static Pattern pattern = Pattern.compile("(?>[$]?delta)?token=['\"]?([\\w\\-\\.]+)", Pattern.CASE_INSENSITIVE);
/**
* Gets the delta token from the delta link provided by the previous response
* @param deltaLink the delta link provided by the previous request
Expand All @@ -91,9 +91,9 @@ protected void addDeltaTokenOption(@Nonnull final String value, @Nonnull final S
protected String getDeltaTokenFromLink(@Nonnull final String deltaLink) {
Objects.requireNonNull(deltaLink, "parameter deltaLink cannot be null");
final Matcher matcher = pattern.matcher(deltaLink);
if(matcher.matches()) {
if(matcher.find()) {
return matcher.group(1);
}
return "";
return "";
}
}