Skip to content

Commit aad2bf3

Browse files
fixes #41
1 parent 897ada6 commit aad2bf3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/requests/helpers/parseResponse.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,11 @@ module.exports = function parseResponse(response, responseHeaders, parseParams)
204204
? responseHeaders['OData-EntityId']
205205
: responseHeaders['odata-entityid'];
206206

207-
parseResult = /([0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9A-F]{12})\)$/i.exec(entityUrl)[1];
207+
var guidResult = /([0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9A-F]{12})\)$/i.exec(entityUrl);
208+
209+
if (guidResult) {
210+
parseResult = guidResult[1];
211+
}
208212
}
209213
}
210214

0 commit comments

Comments
 (0)