Update readme-parse.php
This commit is contained in:
parent
b4d4d72c84
commit
935ecb8512
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue