mirror of https://github.com/go-gitea/gitea.git
Backport #33666 by wxiaoguang Fix #33665 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>pull/33679/head^2
parent
aeeccc9642
commit
ae595aa913
@ -0,0 +1,7 @@
|
||||
import {substituteRepoOpenWithUrl} from './repo-common.ts';
|
||||
|
||||
test('substituteRepoOpenWithUrl', () => {
|
||||
// For example: "x-github-client://openRepo/https://github.com/go-gitea/gitea"
|
||||
expect(substituteRepoOpenWithUrl('proto://a/{url}', 'https://gitea')).toEqual('proto://a/https://gitea');
|
||||
expect(substituteRepoOpenWithUrl('proto://a?link={url}', 'https://gitea')).toEqual('proto://a?link=https%3A%2F%2Fgitea');
|
||||
});
|
Loading…
Reference in New Issue