diff --git a/src/places_crawler.js b/src/places_crawler.js index 9b6f9e8..79539ef 100644 --- a/src/places_crawler.js +++ b/src/places_crawler.js @@ -45,7 +45,7 @@ const extractPlaceDetail = async (page) => { }); // Finds values from y axis $(this).find('.section-popular-times-bar').each(function (barIndex) { - const occupancyMatch = $(this).attr('aria-label').match(/\d+\s+?%/); + const occupancyMatch = $(this).attr('aria-label').match(/\d+(\s+)?%/); if (occupancyMatch && occupancyMatch.length) { const maybeHour = graphStartFromHour + barIndex; graphs[day].push({