Skip to content

Commit af7cd7b

Browse files
committed
fixup! Refactor collapseLeadingSlashes function for simplicity and readability
2 parents ae5c141 + 8574a80 commit af7cd7b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ function serveStatic (root, options) {
127127

128128
/**
129129
* Collapse all leading slashes into a single slash
130+
*
131+
* @param {string} str
132+
* @returns {string}
130133
* @private
131134
*/
132135

0 commit comments

Comments
 (0)