Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Miraeld committed Dec 5, 2024
1 parent 2566c68 commit 464eff7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ protected function is_excluded( string $url, array $exclusions ): bool {
return false;
}

// Escape each exclusion pattern and combine them into a single regex pattern
// Escape each exclusion pattern and combine them into a single regex pattern.
$escaped_exclusions = array_map(
function ( $exclusion ) {
return preg_quote( $exclusion, '#' );
Expand All @@ -172,7 +172,7 @@ function ( $exclusion ) {

$exclusions_str = implode( '|', $escaped_exclusions );

// Use a single regex pattern to check for any exclusion
// Use a single regex pattern to check for any exclusion.
if ( preg_match( '#(' . $exclusions_str . ')#', $url ) ) {
return true;
}
Expand Down

0 comments on commit 464eff7

Please sign in to comment.