Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyundai committed Mar 13, 2024
1 parent 142b12a commit 48c9811
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions blocks/page-server/page-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@ async function sanitizeMeta(meta) {
meta.content = HtmlSanitizer.SanitizeHtml(meta.content);
}

export function titleCase(str) {
const splitStr = str.toLowerCase().split('-');
for (let i = 0; i < splitStr.length; i += 1) {
splitStr[i] = splitStr[i].charAt(0).toUpperCase() + splitStr[i].substring(1);
}
return splitStr.join(' ');
}

// metadata -> dom blades
async function autoUpdatePage(main) {
if (!main) {
Expand Down

0 comments on commit 48c9811

Please sign in to comment.