#465: decompiler should never return a blank string

This commit is contained in:
gorhill 2015-07-09 09:08:49 -04:00
parent a7d5c2619d
commit 2f786ae921
1 changed files with 3 additions and 0 deletions

View File

@ -229,7 +229,10 @@ var filterDecompiler = (function() {
case '//h':
filter += '/' + tfield0 + '/';
break;
// https://github.com/gorhill/uBlock/issues/465
// Return at least *something*
default:
filter = compiled.replace(/\s+/g, ' ');
break;
}