mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-21 15:16:36 +02:00
commit
29d9b74c44
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue