Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: QQ music Cookie parse error #1224

Closed

Conversation

weiguangchao
Copy link

QQ Music Cookie like this:
uin=1111; qm_keyst=xxxx. Maybe has some '='
Then use the first '=' to split key and value.

@@ -24,7 +24,12 @@ async function parseDotenv(filePath) {
for await (const line of rl) {
if (line.startsWith('#')) continue;

const [key, value] = line.split('=', 2);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const [key, value] = line.split(/=(.+)/, 2);
直接这样就好了

@1715173329 1715173329 closed this in bd1f348 Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants