1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-02 17:19:38 +02:00

#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

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;
}