Skip to content
This repository was archived by the owner on Jun 6, 2024. It is now read-only.
Merged
Changes from 1 commit
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
Prev Previous commit
fix case sensitive in keyword search
  • Loading branch information
yiyione committed Dec 15, 2020
commit 3c2f3183edd3be72ae3fd5d4e8a15c24d4c45ec7
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,26 @@ class TaskRoleFilter {
containerIp,
containerId,
}) =>
(taskState && capitalize(taskState).indexOf(keyword) > -1) ||
(taskState &&
taskState.toLowerCase().indexOf(keyword.toLowerCase()) > -1) ||
(containerExitSpec &&
containerExitSpec.type &&
containerExitSpec.type.indexOf(keyword) > -1) ||
containerExitSpec.type
.toLowerCase()
.indexOf(keyword.toLowerCase()) > -1) ||
(containerExitSpec &&
containerExitSpec.code !== undefined &&
containerExitSpec.code.toString().indexOf(keyword) > -1) ||
(containerNodeName && containerNodeName.indexOf(keyword) > -1) ||
(containerIp && containerIp.indexOf(keyword) > -1) ||
(containerId && containerId.indexOf(keyword) > -1),
containerExitSpec.code
.toString()
.toLowerCase()
.indexOf(keyword.toLowerCase()) > -1) ||
(containerNodeName &&
containerNodeName.toLowerCase().indexOf(keyword.toLowerCase()) >
-1) ||
(containerIp &&
containerIp.toLowerCase().indexOf(keyword.toLowerCase()) > -1) ||
(containerId &&
containerId.toLowerCase().indexOf(keyword.toLowerCase()) > -1),
);
}
if (!isEmpty(exitType)) {
Expand Down