Split a banner comment into product and title.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_header_parse_banner_line

Purpose

Split a banner comment into product and title.

Arguments

  • $1 — Banner comment line in # Product - Title format.
  • $2 — Output variable name for product.
  • $3 — Output variable name for title.

Side effects

Assigns product/title variables, or empties them when the line does not match.

Returns

  • 0 on match; 1 when no banner delimiter was found.

Usage

  sgnd_header_parse_banner_line "# SolidGroundUX - Core" product title