mirror of
1
Fork 0
forgejo/web_src/js/utils/url.js

4 lines
99 B
JavaScript

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