mirror of
https://github.com/curl/curl.git
synced 2026-07-23 17:07:16 +03:00
scripts/mdlinkcheck: fix the ../ handling in file links
Follow-up to 62515e8e9d
Closes #15797
This commit is contained in:
parent
250d613763
commit
28dd14aafe
2 changed files with 4 additions and 2 deletions
4
.github/workflows/checkdocs.yml
vendored
4
.github/workflows/checkdocs.yml
vendored
|
|
@ -14,7 +14,8 @@ name: Docs
|
|||
- '*/ci'
|
||||
paths:
|
||||
- '.github/workflows/checkdocs.yml'
|
||||
- '.github/scripts/**'
|
||||
- '.github/scripts/mdlinkcheck'
|
||||
- '/scripts/**'
|
||||
- '**.md'
|
||||
- 'docs/*'
|
||||
pull_request:
|
||||
|
|
@ -23,6 +24,7 @@ name: Docs
|
|||
paths:
|
||||
- '.github/workflows/checkdocs.yml'
|
||||
- '.github/scripts/**'
|
||||
- '.github/scripts/mdlinkcheck'
|
||||
- '**.md'
|
||||
- 'docs/*'
|
||||
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ sub storelink {
|
|||
$dir =~ s:([^/]*\z)::;
|
||||
|
||||
while($link =~ s:^\.\.\/::) {
|
||||
$dir =~ s:^([^/]*)/::;
|
||||
$dir =~ s:([^/]*)\/\z::;
|
||||
}
|
||||
|
||||
$flink{"./$dir$link"} .= "$f:$line ";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue