diff --git a/src/onedrive.d b/src/onedrive.d index 7f76a30a..ad842a58 100644 --- a/src/onedrive.d +++ b/src/onedrive.d @@ -225,7 +225,7 @@ final class OneDriveApi } } // 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;