Commit b3821e6
committed
Support removing whole lines of text with regex in m3u-prune scriptlet
Related issue:
- uBlockOrigin/uBlock-issues#2508
If the first argument is a regex with multine flag set, the
scriptlet will execute the regex against the whole text, and
remove matching text from the whole text.
If the matching text does not contains whole lines, the text
won't be removed, i.e. it is not allowed to remove only part
of a line.1 parent f80c84a commit b3821e6
1 file changed
+22
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1668 | 1668 | | |
1669 | 1669 | | |
1670 | 1670 | | |
1671 | | - | |
1672 | 1671 | | |
1673 | 1672 | | |
1674 | 1673 | | |
| |||
1739 | 1738 | | |
1740 | 1739 | | |
1741 | 1740 | | |
1742 | | - | |
1743 | 1741 | | |
1744 | 1742 | | |
1745 | 1743 | | |
| |||
1753 | 1751 | | |
1754 | 1752 | | |
1755 | 1753 | | |
1756 | | - | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
1757 | 1760 | | |
1758 | 1761 | | |
1759 | 1762 | | |
| |||
1790 | 1793 | | |
1791 | 1794 | | |
1792 | 1795 | | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
1793 | 1812 | | |
1794 | 1813 | | |
1795 | 1814 | | |
| |||
1841 | 1860 | | |
1842 | 1861 | | |
1843 | 1862 | | |
1844 | | - | |
1845 | 1863 | | |
1846 | 1864 | | |
1847 | 1865 | | |
| |||
0 commit comments