Merge pull request #281 from mgor/master

invalid_grant, error 70000
This commit is contained in:
skilion 2018-01-20 21:05:43 +01:00 committed by GitHub
commit 29d9b74c44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,7 +75,7 @@ final class OneDriveApi
write(url, "\n\n", "Enter the response uri: ");
readln(response);
// match the authorization code
auto c = matchFirst(response, r"(?:(\?|&)code=)([\w\d-]+)");
auto c = matchFirst(response, r"(?:[\?|&]code=)([\w\d-]+)");
if (c.empty) {
log.log("Invalid uri");
return false;