From 62881b5245ec1f9c5912ebe315aadcb8bce1ccad Mon Sep 17 00:00:00 2001 From: Dom Brassey Date: Mon, 8 Jul 2024 13:01:34 +0100 Subject: [PATCH] small regex fix --- script/scriptEventLists.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/scriptEventLists.js b/script/scriptEventLists.js index 220e31c..1a76f49 100644 --- a/script/scriptEventLists.js +++ b/script/scriptEventLists.js @@ -111,7 +111,7 @@ function showEvents(eventsArray) { ); // add spaces after '.' (except .com...) eventsArray[i].description = eventsArray[i].description.replace( - /\.(?!\s|co\b|org\b|net\b)/g, + /\.(?!\s|co\b|org\b|net\b|discoverandgo\b)/g, ". " ); // add spaces after ':' (except '://') @@ -124,8 +124,8 @@ function showEvents(eventsArray) { if (eventsArray[i].name.length > 17) { eventsArray[i].name = eventsArray[i].name.substring(0, 17) + ".."; } - if (eventsArray[i].description.length > 100) { - eventsArray[i].description = eventsArray[i].description.substring(0, 100); + if (eventsArray[i].description.length > 101) { + eventsArray[i].description = eventsArray[i].description.substring(0, 101); } } // separate the events into arrays by type