Skip to content

Commit

Permalink
fix: ignore bitrix redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Mar 5, 2020
1 parent 29c2f86 commit b310334
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scrap-site.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ module.exports = async (baseUrl, options) => {
if (options.url.match(/\?width=\d+&height=\d+/)) return false; // визитки, сотрудники
if (options.url.includes('?vi=y')) return false; // версия для слабовидящих
if (options.url.includes('gallery/?page=detail')) return false; // Битрикс Галерея 2.0
if (options.url.includes('redirect.php')) return false; // bitrix redirect
if (options.url.includes('rk.php')) return false; // bitrix rk

return true;
},
Expand Down

0 comments on commit b310334

Please sign in to comment.