Skip to content

Commit 227ad50

Browse files
committed
make regex split to handle newline/tab chars
1 parent 712c25f commit 227ad50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/views/sis/student-work/clean-job.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function getLinksFromJob(job: JobType) {
5454
}
5555

5656
function parseLinks(data: string) {
57-
const allLinks = data.split(' ')
57+
const allLinks = data.split(/\s/)
5858
if (!allLinks.length) {
5959
return []
6060
}

0 commit comments

Comments
 (0)