Skip to content

Commit

Permalink
fixes #41
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandrRogov committed Jan 24, 2019
1 parent 897ada6 commit aad2bf3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/requests/helpers/parseResponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,11 @@ module.exports = function parseResponse(response, responseHeaders, parseParams)
? responseHeaders['OData-EntityId']
: responseHeaders['odata-entityid'];

parseResult = /([0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9A-F]{12})\)$/i.exec(entityUrl)[1];
var guidResult = /([0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9A-F]{12})\)$/i.exec(entityUrl);

if (guidResult) {
parseResult = guidResult[1];
}
}
}

Expand Down

0 comments on commit aad2bf3

Please sign in to comment.