Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Co-authored-by: Pierre Gordon <[email protected]>
  • Loading branch information
westonruter and pierlon authored Jan 26, 2021
1 parent 337806c commit 6222a32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/transform-readme.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static function ( $matches ) {
foreach ( explode( "\n", $parts[2] ) as $meta ) {
$meta = trim( $meta );
if ( ! preg_match( '/^\*\*(?P<key>.+?):\*\* (?P<value>.+)/', $meta, $matches ) ) {
fwrite( STDERR, "Parse error on for meta line: $meta.\n" );
fwrite( STDERR, "Parse error for meta line: $meta.\n" );
exit( __LINE__ );
}

Expand Down Expand Up @@ -76,7 +76,7 @@ static function ( $matches ) {
];
foreach ( $expected_metadata as $key ) {
if ( empty( $metadata[ $key ] ) ) {
fwrite( STDERR, "Failed to parse metadata. Missign: $key\n" );
fwrite( STDERR, "Failed to parse metadata. Missing: $key\n" );
exit( __LINE__ );
}
}
Expand Down

0 comments on commit 6222a32

Please sign in to comment.