Skip to content

Commit

Permalink
Merge pull request #701 from WordPress/698-checker-seems-to-be-return…
Browse files Browse the repository at this point in the history
…ing-invalid-license-warning

Fixes SPDX warning
  • Loading branch information
davidperezgar authored Oct 7, 2024
2 parents c698590 + 009e0f7 commit 9e4cd46
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ private function normalize_licenses( $license ) {
$license = str_replace( '-', '', $license );
$license = str_replace( 'GNU General Public License (GPL)', 'GPL', $license );
$license = str_replace( 'GNU General Public License', 'GPL', $license );
$license = str_replace( ' version ', 'v', $license );
$license = preg_replace( '/GPL\s*[-|\.]*\s*[v]?([0-9])(\.[0])?/i', 'GPL$1', $license, 1 );
$license = str_replace( '.', '', $license );

Expand Down

0 comments on commit 9e4cd46

Please sign in to comment.