Skip to content

Commit

Permalink
[Fix] IDENTITY_REGEX の修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Aoichaan0513 committed Nov 26, 2023
1 parent 616d7f8 commit 1a71917
Showing 1 changed file with 1 addition and 1 deletion.
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:\"(.+?)\",\\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 1a71917

Please sign in to comment.