From 61eff1217c6186eae0d423e728465458e871a5a0 Mon Sep 17 00:00:00 2001 From: Khalah Jones-Golden Date: Thu, 21 Mar 2024 16:03:21 -0400 Subject: [PATCH] [price commas fix] Adding a fix to not count commas in the prices of things --- Readability.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Readability.js b/Readability.js index 0bbe02e1..92c6b244 100644 --- a/Readability.js +++ b/Readability.js @@ -143,7 +143,7 @@ Readability.prototype = { b64DataUrl: /^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i, // Commas as used in Latin, Sindhi, Chinese and various other scripts. // see: https://en.wikipedia.org/wiki/Comma#Comma_variants - commas: /\u002C|\u060C|\uFE50|\uFE10|\uFE11|\u2E41|\u2E34|\u2E32|\uFF0C/g, + commas: /[\s\D][\u002C|\u060C|\uFE50|\uFE10|\uFE11|\u2E41|\u2E34|\u2E32|\uFF0C][\s\D]/g, // See: https://schema.org/Article jsonLdArticleTypes: /^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/ },