Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ export function getFilterParsedText(inputSearchTerms: SearchTerm[] | undefined):

/** Execute the filter string test condition, returns a boolean */
function testStringCondition(operator: OperatorType | OperatorString, cellValue: string, searchValue: string, searchInputLastChar?: string): boolean {
if (operator === '*' || operator === OperatorType.endsWith) {
if (operator === '*' || operator === OperatorType.endsWith || operator === '*z') {
return cellValue.endsWith(searchValue);
} else if ((operator === '' && searchInputLastChar === '*') || operator === OperatorType.startsWith) {
} else if ((operator === '' && searchInputLastChar === '*') || operator === OperatorType.startsWith || operator === 'a*') {
return cellValue.startsWith(searchValue);
} else if (operator === '' || operator === OperatorType.contains) {
return (cellValue.indexOf(searchValue) > -1);
Expand Down