| 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-present eyeo GmbH | 3 * Copyright (C) 2006-present 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 101 | 101 |
| 102 MatchRegExp__deps: ["$_regexp_data"], | 102 MatchRegExp__deps: ["$_regexp_data"], |
| 103 MatchRegExp: function(id, str, reMatchResults) | 103 MatchRegExp: function(id, str, reMatchResults) |
| 104 { | 104 { |
| 105 var string = readString(str); | 105 var string = readString(str); |
| 106 var result = new exports.ReMatchResults(reMatchResults); | 106 var result = new exports.ReMatchResults(reMatchResults); |
| 107 var matches = string.match(_regexp_data[id]); | 107 var matches = string.match(_regexp_data[id]); |
| 108 if (!matches) | 108 if (!matches) |
| 109 return false; | 109 return false; |
| 110 for (var i = 0; i < matches.length; i++) | 110 for (var i = 0; i < matches.length; i++) |
| 111 result.push(createString(matches[i])); | 111 result.push(matches[i]); |
|
sergei
2017/10/04 08:54:32
matches[i] is JS String, but result.push expects o
hub
2017/10/06 13:49:17
No. push() argument is plain JS string. The bindin
sergei
2017/10/09 15:27:50
Acknowledged.
| |
| 112 return true; | 112 return true; |
| 113 } | 113 } |
| 114 }); | 114 }); |
| LEFT | RIGHT |