MCPcopy Create free account
hub / github.com/error311/FileRise / sanitizeIgnoreRegex

Method sanitizeIgnoreRegex

src/FileRise/Domain/AdminModel.php:924–935  ·  view source on GitHub ↗
($value)

Source from the content-addressed store, hash-verified

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.

Callers 2

updateConfigMethod · 0.95
getConfigMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected