-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
feat(search-shortcuts): Group assignee search suggestions #52764
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
Conversation
export function escapeTagValue(value: string): string { | ||
// Wrap in quotes if there is a space | ||
return value.includes(' ') || value.includes('"') | ||
? `"${value.replace(/"/g, '\\"')}"` |
Check failure
Code scanning / CodeQL
Incomplete string escaping or encoding
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dumb
}; | ||
} | ||
|
||
const searchItems = searchGroupItems as SearchItem[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there no way for searchGroupItems
to have a mixed array of SearchItem and SearchGroup? If so maybe the typing should be SearchItem[] | SearchGroup[]
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, its gets a bit weird in places since typescript doesn't like that one property that can be completely different things
After this change it will be grouped like this
fixes #52577