Skip to content

Commit

Permalink
small regex fix
Browse files Browse the repository at this point in the history
  • Loading branch information
domlet committed Jul 8, 2024
1 parent c1b13ba commit 62881b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script/scriptEventLists.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 '://')
Expand All @@ -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
Expand Down

0 comments on commit 62881b5

Please sign in to comment.