Add string_not_matches_exactly operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7 Reviewed By: lblasa Differential Revision: D49230141 fbshipit-source-id: 7dc7bfa06ab413642385c63b1eb25ef2ef69ef43
This commit is contained in:
committed by
Facebook GitHub Bot
parent
113e2a90ad
commit
17903c22f4
@@ -31,6 +31,11 @@ export const dataTablePowerSearchOperators = {
|
||||
key: 'string_matches_exactly',
|
||||
valueType: 'STRING',
|
||||
}),
|
||||
string_not_matches_exactly: () => ({
|
||||
label: 'is not',
|
||||
key: 'string_not_matches_exactly',
|
||||
valueType: 'STRING',
|
||||
}),
|
||||
} satisfies {
|
||||
[key: string]: (...args: any[]) => OperatorConfig;
|
||||
};
|
||||
@@ -50,4 +55,6 @@ export const dataTablePowerSearchOperatorProcessorConfig = {
|
||||
.includes((searchValue as string).toLowerCase()),
|
||||
string_matches_exactly: (operator, searchValue, value) =>
|
||||
value === searchValue,
|
||||
string_not_matches_exactly: (operator, searchValue, value) =>
|
||||
value !== searchValue,
|
||||
} satisfies PowerSearchOperatorProcessorConfig;
|
||||
|
||||
Reference in New Issue
Block a user