lmao oops

This commit is contained in:
Nuckyz 2024-05-27 23:32:40 -03:00
parent e96458fafa
commit 539b70cd52
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -511,7 +511,7 @@ export function search(...filters: Array<string | RegExp>) {
const factory = factories[id];
const factoryStr = String(factory);
for (const filter of filters) {
if (typeof filter === "string" && !factoryStr.includes(factoryStr)) continue outer;
if (typeof filter === "string" && !factoryStr.includes(filter)) continue outer;
if (filter instanceof RegExp && !filter.test(factoryStr)) continue outer;
}
results[id] = factory;