Skip to content

Commit

Permalink
Update the conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
ernilambar committed Jan 8, 2025
1 parent d7de0f6 commit 000d64b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ public function run( Check_Result $result ) {
6
);
} else {
$potential_slug = sanitize_title_with_dashes( str_replace( '_', '-', preg_replace( '/[^a-z0-9 _.-]/i', '', remove_accents( $plugin_header['Name'] ) ) ) );
$valid_chars_count = preg_match_all( '/[a-z0-9-]/i', $plugin_header['Name'] );

if ( empty( $potential_slug ) ) {
if ( intval( $valid_chars_count ) < 5 ) {
$this->add_result_error_for_file(
$result,
sprintf(
Expand Down

0 comments on commit 000d64b

Please sign in to comment.