1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-09 00:18:00 +01:00

feat: Filter on all values in toogle data

This commit is contained in:
ivaosthu 2019-10-26 22:47:48 +02:00
parent d837f525bd
commit 24c616ec38

View File

@ -16,7 +16,8 @@ export const mapStateToPropsConfigurable = isFeature => state => {
feature =>
regex.test(feature.name) ||
regex.test(feature.description) ||
feature.strategies.some(s => s && s.name && regex.test(s.name))
feature.strategies.some(s => s && s.name && regex.test(s.name)) ||
regex.test(JSON.stringify(feature))
);
} catch (e) {
// Invalid filter regex