Skip to content

fix(search): render escaped asterisks as escaped#118019

Merged
JoshuaKGoldberg merged 2 commits into
masterfrom
joshgoldberg/logs-880-bug-render-escaped-asterisks-as-escaped
Jun 18, 2026
Merged

fix(search): render escaped asterisks as escaped#118019
JoshuaKGoldberg merged 2 commits into
masterfrom
joshgoldberg/logs-880-bug-render-escaped-asterisks-as-escaped

Conversation

@JoshuaKGoldberg

@JoshuaKGoldberg JoshuaKGoldberg commented Jun 18, 2026

Copy link
Copy Markdown
Member

In the shared SearchQueryBuilder, filter token values containing an escaped asterisk (\*) were rendered identically to an active wildcard (*). Eek. This PR adds a visual \ to differentiate.

Given the message contains query with a * b \* c:

Before After
image image

Closes LOGS-880.

When a filter token value contains an escaped asterisk (\*),
formatFilterValue previously stripped the escape via
unescapeAsteriskSearchValue before display, so a literal \* rendered
identically to an active wildcard *. Stop stripping the escape in the
VALUE_TEXT branch so escaped asterisks render as escaped, letting users
distinguish a literal star from a wildcard. This is in the shared
SearchQueryBuilder component, so it applies everywhere the component
(and FormattedQuery) is used.

Fixes LOGS-880
@linear-code

linear-code Bot commented Jun 18, 2026

Copy link
Copy Markdown

LOGS-880

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 18, 2026
@JoshuaKGoldberg JoshuaKGoldberg changed the title fix(search): Render escaped asterisks as escaped fix(search): render escaped asterisks as escaped Jun 18, 2026
@JoshuaKGoldberg

Copy link
Copy Markdown
Member Author

@cursor review

@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review June 18, 2026 15:28
@JoshuaKGoldberg JoshuaKGoldberg requested a review from a team as a code owner June 18, 2026 15:28

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 188563b. Configure here.

@JoshuaKGoldberg JoshuaKGoldberg merged commit 4d82cb2 into master Jun 18, 2026
79 checks passed
@JoshuaKGoldberg JoshuaKGoldberg deleted the joshgoldberg/logs-880-bug-render-escaped-asterisks-as-escaped branch June 18, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants