Left: | ||
Right: |
LEFT | RIGHT |
---|---|
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 Loading... | |
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 } | |
LEFT | RIGHT |