Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

docs: Fix branch prefix detection with dashes #10965

Merged
merged 2 commits into from
May 28, 2020

Conversation

LawnGnome
Copy link
Contributor

I noticed this when admiring the draft campaign documentation in #10921 — if you go to a link that was rewritten to maintain the version prefix, such as any of the links in the sidebar screenshot below, the prefix is erroneously @campaigns instead of @campaigns-new-flow:

image

There's probably an argument for this to just match anything except /, but I've chosen to be conservative here.

It's perfectly cromulent for branch prefixes to include dashes, but the
existing regex doesn't handle that possibility and generates malformed links as
a result. This adds dashes to the pattern.
@LawnGnome LawnGnome added the docs-ux User experience of our docs (not doc content-related) label May 25, 2020
@LawnGnome LawnGnome requested a review from ryan-blunden as a code owner May 25, 2020 23:26
@LawnGnome LawnGnome requested a review from a team May 25, 2020 23:26
@LawnGnome LawnGnome merged commit cae80e4 into master May 28, 2020
@LawnGnome LawnGnome deleted the aharvey/fix-branch-prefix-detection branch May 28, 2020 18:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
docs-ux User experience of our docs (not doc content-related)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants