Skip to content

Commit

Permalink
fix: update IDENTITY_REGEX (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
JellyBrick authored Nov 4, 2023
1 parent 0a79188 commit 5413883
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,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:\"(.+?)\",\\n?.+?:\"(.+?)\"";

private static final Pattern authScriptPattern = Pattern.compile(AUTH_SCRIPT_REGEX);
private static final Pattern identityPattern = Pattern.compile(IDENTITY_REGEX);
Expand Down

0 comments on commit 5413883

Please sign in to comment.