mirror of
https://github.com/kovetskiy/mark.git
synced 2026-01-22 10:47:36 +08:00
Update example path in link.go comments
This commit is contained in:
parent
0a821fb1c5
commit
b2efff89e1
@ -237,9 +237,9 @@ func normalizeConfluenceWebUIPath(path string) string {
|
||||
}
|
||||
|
||||
// Example:
|
||||
// /ex/confluence/05594958-6d5d-4e00-9017-90926d8b82d5/wiki/spaces/DVT/pages/5645697027/DX
|
||||
// /ex/confluence/05532958-2d1d-4f01-2027-90926d8b54d5/wiki/spaces/MySpace/pages/2441299827/TEST
|
||||
// ->
|
||||
// /wiki/spaces/DVT/pages/5645697027/DX
|
||||
// /wiki/spaces/MySpace/pages/2441299827/TEST
|
||||
re := regexp.MustCompile(`^/ex/confluence/[^/]+(/wiki/.*)$`)
|
||||
match := re.FindStringSubmatch(path)
|
||||
if len(match) == 2 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user