Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelogs/upcoming/7702.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Updated `EuiSearchBar` to allow the `@` special character in query string searches
4 changes: 2 additions & 2 deletions src/components/search_bar/query/default_syntax.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -871,12 +871,12 @@ describe('defaultSyntax', () => {
});

test('special characters', () => {
const ast = defaultSyntax.parse('*_-:');
const ast = defaultSyntax.parse('*_-:@');
const clauses = ast.getTermClauses();
expect(clauses).toEqual([
{
type: 'term',
value: '*_-:',
value: '*_-:@',
match: 'must',
},
]);
Expand Down
2 changes: 1 addition & 1 deletion src/components/search_bar/query/default_syntax.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ word

wordChar
= alnum
/ [-_*:/]
/ [-_*:/@]
/ escapedChar
/ extendedGlyph

Expand Down