Merge "Ignore blank lines (previously caused a warning)"

This commit is contained in:
jenkins-bot 2017-06-15 09:47:20 +00:00 committed by Gerrit Code Review
commit bbb0a08e14

View file

@ -464,6 +464,10 @@ class TitleBlacklistEntry {
// Strip comments
$line = preg_replace( "/^\\s*([^#]*)\\s*((.*)?)$/", "\\1", $line );
$line = trim( $line );
// A blank string causes problems later on
if ( $line === '' ) {
return null;
}
// Parse the rest of message
$pockets = [];
if ( !preg_match( '/^(.*?)(\s*<([^<>]*)>)?$/', $line, $pockets ) ) {