Skip to content

Commit

Permalink
fix: h1 trim
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Mar 10, 2020
1 parent 3c74a10 commit 67fbc0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scrap-site.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ module.exports = async (baseUrl, options = {}) => {
request_time:
window.performance.timing.responseEnd - window.performance.timing.requestStart,
title: $('title').text(),
h1: $('h1').text(),
h1: $('h1').text().trim(),
h1_count: $('h1').length,
h2_count: $('h2').length,
h3_count: $('h3').length,
Expand Down

0 comments on commit 67fbc0d

Please sign in to comment.