Skip to content

Experiments: Allow linking experiments by negative index and label.#4335

Open
EtorixDev wants to merge 3 commits into
Vendicated:mainfrom
EtorixDev:experiments-more-link-options
Open

Experiments: Allow linking experiments by negative index and label.#4335
EtorixDev wants to merge 3 commits into
Vendicated:mainfrom
EtorixDev:experiments-more-link-options

Conversation

@EtorixDev

Copy link
Copy Markdown
Contributor

Allow linking experiments by negative index, which mainly pertains to -1 for Not Eligible, and their labels, such as "noteligible" or "variant1".

image

@Vendicated

Copy link
Copy Markdown
Owner

isnt -1 the same as 0?

Comment thread src/plugins/experiments/index.tsx Outdated
find: '"^dev://experiment/',
replacement: {
match: /(\[0-9\]\+)/,
replace: "[a-zA-Z0-9-]+"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this isn't very safe, the match should be more specific to make sure we don't change the wrong regex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants