mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-21 05:21:26 +08:00
4 lines
99 B
JavaScript
4 lines
99 B
JavaScript
|
export function pathEscapeSegments(s) {
|
||
|
return s.split('/').map(encodeURIComponent).join('/');
|
||
|
}
|