mirror of
https://github.com/strapi/strapi.git
synced 2025-08-07 00:09:23 +00:00
Update packages/core/utils/lib/operators.js
Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
This commit is contained in:
parent
32dc008197
commit
1c0c28fb0d
@ -58,7 +58,7 @@ const OPERATORS_LOWERCASE = Object.fromEntries(
|
||||
|
||||
const isOperatorOfType = (type, key, ignoreCase = false) => {
|
||||
if (ignoreCase) {
|
||||
return OPERATORS_LOWERCASE[type]?.includes(key.toLowerCase());
|
||||
return OPERATORS_LOWERCASE[type]?.includes(key.toLowerCase()) ?? false;
|
||||
}
|
||||
return OPERATORS[type]?.includes(key);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user