fix regex for parsing authentication uri

This commit is contained in:
skilion 2018-01-20 21:13:01 +01:00
parent 29d9b74c44
commit d9a5d1b3b9
2 changed files with 5 additions and 1 deletions

View file

@ -3,6 +3,10 @@
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).
## [1.1.1] - 2018-01-20
### Fixed
- Wrong regex for parsing authentication uri
## [1.1.0] - 2018-01-19
### Added
- Support for shared folders (OneDrive Personal only)

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;