From d9a5d1b3b961056f78fe07504f4cbcd42e76e1ae Mon Sep 17 00:00:00 2001 From: skilion Date: Sat, 20 Jan 2018 21:13:01 +0100 Subject: [PATCH] fix regex for parsing authentication uri --- CHANGELOG.md | 4 ++++ src/onedrive.d | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a04b1233..ff7f1690 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/onedrive.d b/src/onedrive.d index ad731c3e..d97c8c02 100644 --- a/src/onedrive.d +++ b/src/onedrive.d @@ -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;