aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/parseScheduleHtml.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parseScheduleHtml.ts b/src/parseScheduleHtml.ts
index 522eaa5..c868194 100644
--- a/src/parseScheduleHtml.ts
+++ b/src/parseScheduleHtml.ts
@@ -2,7 +2,7 @@ import { JSDOM } from 'jsdom'
import { mapNodeList } from './util'
function selectTrimTextContent(ele: Element, selector: string): string {
- return ele.querySelector(selector)?.textContent?.replace(/\s+/g, '') || ''
+ return ele.querySelector(selector)?.textContent?.trim() || ''
}
function dataFromAThumbnail(thumb: Element) {