From fa1676a22c23752c96665da39736e594afbffbaa Mon Sep 17 00:00:00 2001 From: Matthew Huntington Date: Thu, 21 Sep 2023 13:26:38 -0400 Subject: [PATCH] allow spaces in course --- scrape.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrape.js b/scrape.js index f2e92a4..a945a46 100644 --- a/scrape.js +++ b/scrape.js @@ -24,7 +24,7 @@ const scrapeInstance = async (link, page) => { const h3elem = await page.$('h3'); const h3HTML = await h3elem.getProperty('innerHTML'); const h3Value = await h3HTML.jsonValue() - const course = h3Value.match(/(?<=\()[0-9A-Za-z\-]*(?=\))/g)[0] + const course = h3Value.match(/(?<=\()[ 0-9A-Za-z\-]*(?=\))/g)[0] const droppedElem = await page.$('.instance-student-detail .dropped'); const droppedHTML = await droppedElem.getProperty('innerHTML');