Skip to content

Commit e49f125

Browse files
committed
remove redundant character escapes
1 parent 6e76026 commit e49f125

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/gitlab4j/api/utils/AccessTokenUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public String toString() {
8989
protected static final String USER_AGENT = "GitLab4J Client";
9090
protected static final String COOKIES_HEADER = "Set-Cookie";
9191

92-
protected static final String NEW_USER_AUTHENTICITY_TOKEN_REGEX = "\"new_user\".*name=\\\"authenticity_token\\\"\\svalue=\\\"([^\\\"]*)\\\"";
92+
protected static final String NEW_USER_AUTHENTICITY_TOKEN_REGEX = "\"new_user\".*name=\"authenticity_token\"\\svalue=\"([^\"]*)\"";
9393
protected static final Pattern NEW_USER_AUTHENTICITY_TOKEN_PATTERN = Pattern.compile(NEW_USER_AUTHENTICITY_TOKEN_REGEX);
9494

9595
protected static final String AUTHENTICITY_TOKEN_REGEX = "<meta name=\"csrf-token\" content=\"([^\"]*)\"";
@@ -102,7 +102,7 @@ public String toString() {
102102
"\\{.*?&quot;name&quot;:&quot;(.*?)&quot;,.*?&quot;scopes&quot;:\\[(.*?)\\],.*?&quot;revoke_path&quot;:&quot;(.*?)&quot;\\}";
103103
protected static final Pattern REVOKE_PERSONAL_ACCESS_TOKEN_PATTERN = Pattern.compile(REVOKE_PERSONAL_ACCESS_TOKEN_REGEX);
104104

105-
protected static final String FEED_TOKEN_REGEX = "<div data-tokens-data=\\\"\\{.*&quot;feed_token&quot;:\\{.*?&quot;token&quot;:&quot;(.*?)&quot;,";
105+
protected static final String FEED_TOKEN_REGEX = "<div data-tokens-data=\"\\{.*&quot;feed_token&quot;:\\{.*?&quot;token&quot;:&quot;(.*?)&quot;,";
106106
protected static final Pattern FEED_TOKEN_PATTERN = Pattern.compile(FEED_TOKEN_REGEX);
107107

108108
protected static final String HEALTH_CHECK_ACCESS_TOKEN_REGEX = "id=\"health-check-token\">([^<]*)<\\/code>";

0 commit comments

Comments
 (0)