0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-26 00:12:50 +01:00
gitea/web_src/js/utils/url.js
wxiaoguang ac8d71ff07
Refactor branch/tag selector to Vue SFC (#23421)
Follow #23394

There were many bad smells in old code. This PR only moves the code into
Vue SFC, doesn't touch the unrelated logic.

update: after
5f23218c85
, there should be no usage of the vue-rumtime-compiler anymore
(hopefully), so I think this PR could close #19851

---------

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2023-03-14 17:51:20 +08:00

3 lines
99 B
JavaScript

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