aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-alm-client
diff options
context:
space:
mode:
authorAurelien Poscia <aurelien.poscia@sonarsource.com>2022-08-09 08:49:39 +0200
committersonartech <sonartech@sonarsource.com>2022-08-09 20:03:19 +0000
commit90a9791c5e3417221a269c736e3758823d8b6205 (patch)
treea2e329bd383c2cc6bd9f1fc5618df6c95533b979 /server/sonar-alm-client
parent13ef8c734cb370b7a096e9679fe01a9d1935c40f (diff)
downloadsonarqube-90a9791c5e3417221a269c736e3758823d8b6205.tar.gz
sonarqube-90a9791c5e3417221a269c736e3758823d8b6205.zip
SONAR-17150 make regex less sensitive
Diffstat (limited to 'server/sonar-alm-client')
-rw-r--r--server/sonar-alm-client/src/main/java/org/sonar/alm/client/github/GithubApplicationHttpClientImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-alm-client/src/main/java/org/sonar/alm/client/github/GithubApplicationHttpClientImpl.java b/server/sonar-alm-client/src/main/java/org/sonar/alm/client/github/GithubApplicationHttpClientImpl.java
index 5dc612914c0..c0a43d6c57f 100644
--- a/server/sonar-alm-client/src/main/java/org/sonar/alm/client/github/GithubApplicationHttpClientImpl.java
+++ b/server/sonar-alm-client/src/main/java/org/sonar/alm/client/github/GithubApplicationHttpClientImpl.java
@@ -50,7 +50,7 @@ import static java.util.Optional.ofNullable;
public class GithubApplicationHttpClientImpl implements GithubApplicationHttpClient {
private static final Logger LOG = Loggers.get(GithubApplicationHttpClientImpl.class);
- private static final Pattern NEXT_LINK_PATTERN = Pattern.compile(".*<(.*)>; rel=\"next\"");
+ private static final Pattern NEXT_LINK_PATTERN = Pattern.compile("<([^<]+)>; rel=\"next\"");
private static final String GITHUB_API_VERSION_JSON = "application/vnd.github.v3+json";
private static final String ANTIOPE_PREVIEW_JSON = "application/vnd.github.antiope-preview+json";
private static final String MACHINE_MAN_PREVIEW_JSON = "application/vnd.github.machine-man-preview+json";