Skip to content

Commit

Permalink
Merge pull request #122 from JellyBrick/patch-1
Browse files Browse the repository at this point in the history
hotfix: fix #116
  • Loading branch information
Walkyst authored Aug 15, 2023
2 parents 7fcee2e + 7dd4c23 commit b7a2dbe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class YoutubeAccessTokenTracker {
private static final Logger log = LoggerFactory.getLogger(YoutubeAccessTokenTracker.class);

private static final String AUTH_SCRIPT_REGEX = "<script id=\"base-js\" src=\"(.*?)\" nonce=\".*?\"></script>";
private static final String IDENTITY_REGEX = "\\{clientId:\"(.+?)\",.+?:\"(.+?)\"}";
private static final String IDENTITY_REGEX = "\\{clientId:\"(.+?)\",.+?:\"(.+?)\"";

private static final Pattern authScriptPattern = Pattern.compile(AUTH_SCRIPT_REGEX);
private static final Pattern identityPattern = Pattern.compile(IDENTITY_REGEX);
Expand Down Expand Up @@ -512,4 +512,4 @@ public CachedAuthScript(String clientId, String clientSecret) {
this.clientSecret = clientSecret;
}
}
}
}

0 comments on commit b7a2dbe

Please sign in to comment.