Skip to content

fix: use prefix field instead of regex for subscription prefix filters#377

Merged
w1am merged 1 commit intotrunkfrom
w1am/dev-1044-in-a-catch-up-subscription-filtering-by-stream-name-prefix
Feb 26, 2026
Merged

fix: use prefix field instead of regex for subscription prefix filters#377
w1am merged 1 commit intotrunkfrom
w1am/dev-1044-in-a-catch-up-subscription-filtering-by-stream-name-prefix

Conversation

@w1am
Copy link
Contributor

@w1am w1am commented Feb 26, 2026

Fix #374

The addPrefix methods in SubscriptionFilter were incorrectly calling builder.setRegex() instead of builder.addPrefix(), causing prefix filters to be sent as regex matches on the wire. This could match streams that contain the prefix anywhere in the name rather than only at the start.

The addPrefix methods in SubscriptionFilter were incorrectly calling
builder.setRegex() instead of builder.addPrefix(), causing prefix filters
to be sent as regex matches on the wire. This could match streams that
contain the prefix anywhere in the name rather than only at the start.

Fixes #374
@linear
Copy link

linear bot commented Feb 26, 2026

@w1am w1am merged commit 79ea6a4 into trunk Feb 26, 2026
80 of 83 checks passed
@w1am w1am deleted the w1am/dev-1044-in-a-catch-up-subscription-filtering-by-stream-name-prefix branch February 26, 2026 09:35
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

@w1am 👉 Created pull request targeting release/v1.1: #378

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In a catch-up subscription, filtering by stream name prefix fails

1 participant