fix(backend-gitlab): support folder names with whitespace (#1799)

This commit is contained in:
Philipp Nieting 2018-11-02 15:38:54 +01:00 committed by Shawn Erquhart
parent b60c94aa8f
commit a9f69f9ddc

View File

@ -119,7 +119,12 @@ export default class API {
.map(str => str.trim().split(';'))
.map(([linkStr, keyStr]) => [
keyStr.match(/rel="(.*?)"/)[1],
unsentRequest.fromURL(linkStr.trim().match(/<(.*?)>/)[1]),
unsentRequest.fromURL(
linkStr
.trim()
.match(/<(.*?)>/)[1]
.replace(/\+/g, '%20'),
),
])
.update(list => Map(list));
const actions = links