Skip to content

Commit 176c8f8

Browse files
committed
feat: improved on normalizeAsUrl utils
1 parent 3bd970c commit 176c8f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/utils/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function getRepoParts(repoFullname) {
2929
* @returns {string}
3030
*/
3131
export function normalizeAsUrl(string) {
32-
return string.toLowerCase().replace(/\s+/g, "-");
32+
return string.trim().toLowerCase().replace(/\s+/g, "-");
3333
}
3434

3535
/**

0 commit comments

Comments
 (0)