($value)
| 922 | } |
| 923 | |
| 924 | private static function sanitizeIgnoreRegex($value): string |
| 925 | { |
| 926 | $value = str_replace(["\r\n", "\r"], "\n", trim((string)$value)); |
| 927 | if ($value === '') { |
| 928 | return ''; |
| 929 | } |
| 930 | $value = preg_replace('/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/', '', $value); |
| 931 | if (strlen($value) > 2000) { |
| 932 | $value = substr($value, 0, 2000); |
| 933 | } |
| 934 | return $value; |
| 935 | } |
| 936 | |
| 937 | /** |
| 938 | * Retrieves the current configuration. |
no outgoing calls
no test coverage detected