UNPKG

dgeni-packages

Version:

A collection of dgeni packages for generating documentation from source code

12 lines (11 loc) 232 B
/** * @dgRenderFilter firstLine * @description Extract the first line from the value */ module.exports = { name: 'firstLine', process(str) { if (!str) return str; return str.match(/([^$]*\{@[^}]+\})|.*$/m)[0]; } };