re. #1461: fixed bad regex

This commit is contained in:
gorhill 2016-03-13 10:38:48 -04:00
parent 49d9854e82
commit f1900a38b1
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ d9fcd484d3b1be1954bcb9252048ca14 assets/ublock/filters.txt
98088252cedafb8571cf61b91bea219e assets/ublock/badware.txt
5baa90e2da7cd6a73edff2010557ee57 assets/ublock/redirect.txt
b65ec581214a0d24dad6522a60f827ab assets/ublock/experimental.txt
feae904c1056c9bd3d1a45ff5dad1bda assets/ublock/resources.txt
9f83c42b4c586d5220f9ace91fc7167a assets/ublock/resources.txt
059e0bfbf22bd242dda7b07389fe09a2 assets/ublock/filter-lists.json
3605c73f21abca428c7eb69a8bc32dfe assets/thirdparties/easylist-downloads.adblockplus.org/easyprivacy.txt
a91af77c47c302c0741c7445b0fada1a assets/thirdparties/easylist-downloads.adblockplus.org/easylist.txt

View File

@ -833,7 +833,7 @@ ytad-defuser.js application/javascript
set: function(a) {
ytpc = a;
if ( a && a.args && typeof a.args.ad_slots === 'string' ) {
a.args.ad_slots = a.args.ad_slots.replace(/0,?/, '');
a.args.ad_slots = a.args.ad_slots.replace(/^0+(,|$)/, '');
}
}
});