diff --git a/src/js/redirect-engine.js b/src/js/redirect-engine.js index 9e0f30446..3440e037c 100644 --- a/src/js/redirect-engine.js +++ b/src/js/redirect-engine.js @@ -460,7 +460,7 @@ RedirectEngine.prototype.compileRuleFromStaticFilter = function(line) { let type, redirect = '', srchns = []; - for ( const option of matches[3].split(',') ) { + for ( const option of matches[3].trim().split(/,/) ) { if ( option.startsWith('redirect=') ) { redirect = option.slice(9); continue;