(object: Record<string, any>, search: string)
| 132 | if (variant.some((v) => v.includes(':merge('))) return |
| 133 | } else if (typeof variant === 'object') { |
| 134 | function keyIncludes(object: Record<string, any>, search: string): boolean { |
| 135 | return Object.entries(object).some( |
| 136 | ([key, value]) => |
| 137 | key.includes(search) || (typeof value === 'object' && keyIncludes(value, search)), |
| 138 | ) |
| 139 | } |
| 140 | if (keyIncludes(variant, ':merge(')) return |
| 141 | } |
| 142 |