From 3331ed215592389411ae8e87c7301740d1ccbb63 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Tue, 2 Jul 2024 20:01:15 -0300 Subject: [PATCH] forgot this --- src/webpack/api.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/webpack/api.tsx b/src/webpack/api.tsx index 2bc027ba9..48861c76d 100644 --- a/src/webpack/api.tsx +++ b/src/webpack/api.tsx @@ -841,17 +841,17 @@ export const cacheFindModuleFactory = traceFunction("cacheFindModuleFactory", fu * Search modules by keyword. This searches the factory methods, * meaning you can search all sorts of things, methodName, strings somewhere in the code, etc. * - * @param filters One or more strings or regexes + * @param code One or more strings or regexes * @returns Mapping of found modules */ -export function search(...filters: CodeFilter) { +export function search(...code: CodeFilter) { const results = {} as Record; const factories = wreq.m; for (const id in factories) { const factory = factories[id]; - if (stringMatches(String(factory), filters)) { + if (stringMatches(String(factory), code)) { results[id] = factory; } }