mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-03 14:32:24 +02:00
commit
29d9b74c44
|
@ -75,7 +75,7 @@ final class OneDriveApi
|
||||||
write(url, "\n\n", "Enter the response uri: ");
|
write(url, "\n\n", "Enter the response uri: ");
|
||||||
readln(response);
|
readln(response);
|
||||||
// match the authorization code
|
// match the authorization code
|
||||||
auto c = matchFirst(response, r"(?:(\?|&)code=)([\w\d-]+)");
|
auto c = matchFirst(response, r"(?:[\?|&]code=)([\w\d-]+)");
|
||||||
if (c.empty) {
|
if (c.empty) {
|
||||||
log.log("Invalid uri");
|
log.log("Invalid uri");
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue