mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-21 15:16:36 +02:00
fix regex for parsing authentication uri
This commit is contained in:
parent
29d9b74c44
commit
d9a5d1b3b9
|
@ -3,6 +3,10 @@
|
||||||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
||||||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [1.1.1] - 2018-01-20
|
||||||
|
### Fixed
|
||||||
|
- Wrong regex for parsing authentication uri
|
||||||
|
|
||||||
## [1.1.0] - 2018-01-19
|
## [1.1.0] - 2018-01-19
|
||||||
### Added
|
### Added
|
||||||
- Support for shared folders (OneDrive Personal only)
|
- Support for shared folders (OneDrive Personal only)
|
||||||
|
|
|
@ -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