From 372a65754998ea697320594105987118725d6d2c Mon Sep 17 00:00:00 2001 From: Mat Kelly Date: Sun, 3 Feb 2019 12:43:28 -0500 Subject: [PATCH] fix(build): Add quote to second conditional of regex that parses out the URI from the content disposition header. Fixes #104 --- tools/downloadExternals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/downloadExternals.js b/tools/downloadExternals.js index 54d98a5b..b3847b66 100644 --- a/tools/downloadExternals.js +++ b/tools/downloadExternals.js @@ -143,7 +143,7 @@ function downloadMemgator (uri) { } let req = request(opts) req.on('response', function (res) { - let namrex = /['a-zA-z;\s]+=([a-zA-z0-9.-]+)/g + let namrex = /['a-zA-z;\s]+=(["a-zA-z0-9.-]+)/g if (res.statusCode !== 200) throw new Error('Status not 200') let encoding = res.headers[ 'content-type' ] let name = namrex.exec(res.headers[ 'content-disposition' ])[ 1 ]