Skip to content

Commit 005d504

Browse files
committed
remove trailing and leading slashes
1 parent 425292d commit 005d504

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/potential-redirects-or-partials.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ jobs:
9696
This PR updates partial files, which are bits of content used across multiple files."
9797
for path in $PARTIAL_FILES; do
9898
comment_body="$comment_body
99-
- [ ] [$path](https://developers.cloudflare.com/style-guide/components/render/?partial=$path)"
99+
clean_path=$(echo "$path" | sed -e 's/"//g' -e 's/^\///' -e 's/\/$//')
100+
- [ ] \`$clean_path\` [link]](https://developers.cloudflare.com/style-guide/components/render/?partial=$clean_path)"
100101
done
101102
fi
102103

0 commit comments

Comments
 (0)