1
0
Fork 0
codeberg-forgejo/web_src/js/utils/url.js

4 lines
99 B
JavaScript

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