forked from gitea/gitea
1
0
Fork 0
gitea/web_src/js/utils/url.js

4 lines
99 B
JavaScript

export function pathEscapeSegments(s) {
return s.split('/').map(encodeURIComponent).join('/');
}