Forgot 'i' flag when changing from regex shorthand to string.

This commit is contained in:
Sean Willis 2018-02-20 20:40:49 -08:00 committed by Charlie Robbins
parent 2c98416ac2
commit 50f58b4cd9

View File

@ -220,7 +220,7 @@ common.rewriteCookieProperty = function rewriteCookieProperty(header, config, pr
return rewriteCookieProperty(headerElement, config, property);
});
}
return header.replace(new RegExp("(;\\s*" + property + "=)([^;]+)"), function(match, prefix, previousValue) {
return header.replace(new RegExp("(;\\s*" + property + "=)([^;]+)", 'i'), function(match, prefix, previousValue) {
var newValue;
if (previousValue in config) {
newValue = config[previousValue];