mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
dynamic: only show first 20 matches per rule
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
* @param {number} [maxMatches=500] - Maximum number of matches to parse per rule
|
||||
* @returns {Array} - Parsed tree data for the TreeTable component
|
||||
*/
|
||||
export function parseRules(rules, flavor, layout, maxMatches = 1) {
|
||||
export function parseRules(rules, flavor, layout, maxMatches = 20) {
|
||||
return Object.entries(rules).map(([ruleName, rule], index) => {
|
||||
const ruleNode = {
|
||||
key: `${index}`,
|
||||
|
||||
Reference in New Issue
Block a user