Skip to content

Commit

Permalink
Remove invalid assumption regarding valid characters
Browse files Browse the repository at this point in the history
  • Loading branch information
fredden committed Jan 10, 2025
1 parent d36d44a commit c2aec40
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -1663,11 +1663,6 @@ private function parseSniffCodes($input, $argument)
foreach ($possibleSniffs as $sniff) {
$sniff = trim($sniff);

if (preg_match('{[^A-Za-z0-9.]}', $sniff) === 1) {
$errors[] = 'Unsupported character detected: '.$sniff;
continue;
}

$partCount = substr_count($sniff, '.');
if ($partCount === 2) {
// Correct number of parts.
Expand Down

0 comments on commit c2aec40

Please sign in to comment.