Skip to content

Commit

Permalink
null body bug - #15 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
darsan-in committed Jun 13, 2024
1 parent c28577a commit be4fc8f
Show file tree
Hide file tree
Showing 3 changed files with 9,106 additions and 433 deletions.
4 changes: 2 additions & 2 deletions lib/sweeper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function sweep(richieName: richies, htmlSource: string): string {
return _cleanSoftwareApp(htmlDOM);

default:
return "null";
return htmlDOM.html();
}
}

Expand All @@ -47,7 +47,7 @@ function _cleanArticle(DOMTree: CheerioAPI): string {
return htmlString;
}

function _cleanCourse(DOMTree: CheerioAPI) {
function _cleanCourse(DOMTree: CheerioAPI): string {
DOMTree(`[data-${reservedNames.course.language}]`).removeAttr(
`data-${reservedNames.course.language}`,
);
Expand Down
Loading

0 comments on commit be4fc8f

Please sign in to comment.