Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: lib/common.js

Issue 29361668: Issue 4394 - Create a filter class for element hiding emulation filters (Closed) Base URL: https://bitbucket.org/fhd/adblockpluscore
Left Patch Set: Address Wladimir's comments Created Nov. 21, 2016, 2:34 p.m.
Right Patch Set: Improve compliance with the 80 column rule Created Nov. 21, 2016, 8:10 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « chrome/content/elemHideEmulation.js ('k') | lib/elemHideEmulation.js » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 28 matching lines...) Expand all
39 // process anchor at expression start 39 // process anchor at expression start
40 .replace(/^\\\|/, "^") 40 .replace(/^\\\|/, "^")
41 // process anchor at expression end 41 // process anchor at expression end
42 .replace(/\\\|$/, "$") 42 .replace(/\\\|$/, "$")
43 // remove leading wildcards 43 // remove leading wildcards
44 .replace(/^(\.\*)/, "") 44 .replace(/^(\.\*)/, "")
45 // remove trailing wildcards 45 // remove trailing wildcards
46 .replace(/(\.\*)$/, ""); 46 .replace(/(\.\*)$/, "");
47 } 47 }
48 48
49 if (typeof exports != "undefined") 49 if (typeof exports != "undefined")
kzar 2016/11/21 16:24:55 Nit: The braces here aren't required.
Felix Dahlke 2016/11/21 17:26:12 Done.
50 {
51 exports.filterToRegExp = filterToRegExp; 50 exports.filterToRegExp = filterToRegExp;
52 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld