From c03d38a5c6230e7ff3549e9e1b762035e5820935 Mon Sep 17 00:00:00 2001 From: gorhill Date: Wed, 9 Sep 2015 00:31:28 -0400 Subject: [PATCH] this fixes #349 --- src/js/traffic.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/traffic.js b/src/js/traffic.js index a3a1839..d20fe8a 100644 --- a/src/js/traffic.js +++ b/src/js/traffic.js @@ -403,8 +403,8 @@ var cspStripReporturi = function(csp) { return csp.replace(reReporturi, ''); }; -var reReporturi = /report-uri[^;]*;\s*/; -var reScriptsrc = /script-src[^;]*;\s*/; +var reReporturi = /report-uri[^;]*;?\s*/; +var reScriptsrc = /script-src[^;]*;?\s*/; var reUnsafeinline = /'unsafe-inline'\s*|'nonce-[^']+'\s*/g; /******************************************************************************/