Skip to content

Commit

Permalink
CS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DariusIII committed Jan 1, 2025
1 parent a25b5e8 commit c7251ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Blacklight/ReleaseCleaning.php
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,9 @@ public function fixerCleaner($name)
// Replace multiple spaces with 1 space
$cleanerName = preg_replace([
'/([\-_](proof|sample|thumbs?))*(\.part\d*(\.rar)?|\.rar)?(\d{1,3}\.rev"|\.vol.+?"|\.[A-Za-z0-9]{2,4}$|$)/i',
'/^(Release Name|sample-)/i', '/\s\s+/i'
'/^(Release Name|sample-)/i', '/\s\s+/i',
], ' ', $name);

// Remove invalid characters.
return trim(mb_convert_encoding(preg_replace('/[^(\x20-\x7F)]*/', '', $cleanerName), 'UTF-8', mb_list_encodings()));
}
Expand Down

0 comments on commit c7251ee

Please sign in to comment.