(mixed $value, string $target)
| 390 | } |
| 391 | |
| 392 | private function matchesInThreshold(mixed $value, string $target): bool { |
| 393 | preg_match_all("/'(?:[^'\\\\]|\\\\.)*'|[^,;]+/", $target, $matches); |
| 394 | $values = array_map(static fn (string $item): string => trim($item, " '"), $matches[0]); |
| 395 | return in_array((string)$value, $values, true); |
| 396 | } |
| 397 | } |