Skip to content

Commit

Permalink
Merge pull request #2758 from dannon/more-url-fixes
Browse files Browse the repository at this point in the history
Adjust static staging path generation (again)
  • Loading branch information
bgruening authored Sep 9, 2024
2 parents 519d979 + 134e07a commit 786863c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/build/run.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,10 @@ if (code) {

function formatURLPart(str) {
// Defines formatting of URL parts for static content staging
return (
str
.replace(/([a-z])([A-Z])/g, "$1-$2")
// .replace(/_/g, "-") (test w/o underscore to kebab)
.toLowerCase()
);
return str
.replace(/([a-z])([A-Z])/g, "$1-$2")
.replace(/_/g, "-")
.toLowerCase();
}

// Stage static files, standardizing to kebab-lowercase paths but leaving filenames alone
Expand Down

0 comments on commit 786863c

Please sign in to comment.