Commit ee9ee73
committed
AG-50918 Fix parsing of cosmetic rules with $path modifier to correctly extract domain from pattern
Squashed commit of the following:
commit 540f0a4
Merge: 3056752 50e4b60
Author: scripthunter7 <d.tota@adguard.com>
Date: Fri Feb 13 18:19:43 2026 +0100
Merge branch 'master' into fix/AG-50918
commit 3056752
Author: scripthunter7 <d.tota@adguard.com>
Date: Fri Feb 13 16:31:26 2026 +0100
Update changelog
commit d95f353
Author: scripthunter7 <d.tota@adguard.com>
Date: Thu Feb 12 16:17:29 2026 +0100
AG-50640 Fix parsing of cosmetic rules with $path modifier to correctly extract domain from pattern
Handle cosmetic rules with $path modifier by extracting domain from the remaining pattern after the closing bracket when no domain is found in the modifier list. Add test coverage for $path modifier rules and verify they are not disabled by $generichide.1 parent 50e4b60 commit ee9ee73
File tree
4 files changed
+67
-18
lines changed- packages/tsurlfilter
- src/filterlist
- test
- engine
- filterlist
4 files changed
+67
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
511 | | - | |
512 | | - | |
513 | | - | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
514 | 515 | | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
| 516 | + | |
| 517 | + | |
521 | 518 | | |
522 | | - | |
523 | | - | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
524 | 522 | | |
| 523 | + | |
| 524 | + | |
525 | 525 | | |
526 | | - | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
527 | 529 | | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
532 | 535 | | |
533 | | - | |
534 | | - | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
535 | 542 | | |
536 | 543 | | |
537 | 544 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1432 | 1432 | | |
1433 | 1433 | | |
1434 | 1434 | | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
59 | 72 | | |
60 | 73 | | |
61 | 74 | | |
| |||
0 commit comments