Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(surveys): Add regex matching option #17738

Merged
merged 6 commits into from
Oct 4, 2023
Merged

feat(surveys): Add regex matching option #17738

merged 6 commits into from
Oct 4, 2023

Conversation

neilkakkar
Copy link
Collaborator

Problem

Companion to PostHog/posthog-js#805 - that one should go in first.

Enables regex and exact matching on URL

2023-10-03 15 07 17

Changes

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

How did you test this code?

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 2)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

<PureField label="URL targeting">
<div className="flex flex-row gap-2 items-center">
URL
<LemonSelect
Copy link
Contributor

Choose a reason for hiding this comment

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

This won't work for users unless they upgrade to latest posthog-js, so maybe we can include some sort of tooltip or message somewhere about it? 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah makes sense, added message and validation

image

@neilkakkar neilkakkar merged commit cd60473 into master Oct 4, 2023
71 of 72 checks passed
@neilkakkar neilkakkar deleted the survey-regex branch October 4, 2023 13:17
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.

4 participants