Update readme-parse.php

This commit is contained in:
Italo Izaac 2017-05-20 18:47:08 -03:00
parent b4d4d72c84
commit 935ecb8512
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ class PucReadmeParser {
// Alias for section if search "[ALIAS]"
if( preg_match( "/([^]]+)\s*\[([^]]+)\]/i", $title, $titleNickname ) ) {
$title = trim( $titleNickname[2] );
$sectionSlug = str_replace(' ', '_', strtolower( trim( $title ) ) );
$sectionSlug = str_replace(' ', '_', strtolower( trim( $titleNickname[1] ) ) );
}
$sections[ $sectionSlug ] = array('title' => $title, 'content' => $_sections[$i]);