1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 07:22:28 +02:00

fix #2106 (regression from #1669)

This commit is contained in:
gorhill 2016-10-29 09:55:09 -04:00
parent de3054b485
commit b55447635e

View File

@ -241,9 +241,14 @@ var filterDecompiler = (function() {
break;
case '||a':
case '||ah':
filter += '||' + tfield0;
break;
case '||_':
case '||_h':
filter += '||' + tfield0;
if ( tfields[1] === '1' ) { // left-anchored?
filter += '|';
}
break;
case '//':
case '//h':
@ -263,12 +268,12 @@ var filterDecompiler = (function() {
case '|ah':
case 'a|h':
case '||ah':
case '||_h':
case '//h':
opts.push('domain=' + tfields[1]);
break;
case 'ah':
case '_h':
case '||_h':
opts.push('domain=' + tfields[2]);
break;
default: