parse_header

Function parse_header 

Source
pub fn parse_header(changelog: &str) -> Option<String>
Expand description

Parse the header from a changelog. The changelog header is a string at the begin of the changelog that:

  • Starts with # Changelog, # CHANGELOG, or # changelog
  • ends with ## Unreleased, ## [Unreleased] or ## ..anything.. (in the ..anything.. case, ## ..anything.. is not included in the header)