UNPKG

apidoc-core

Version:

Core parser library to generate apidoc result following the apidoc-spec

11 lines (10 loc) 316 B
/** * Perl */ module.exports = { // find document blocks between '#**' and '#*' // or between '=pod' and '=cut' docBlocksRegExp: /#\*\*\uffff?(.+?)\uffff?(?:\s*)?#\*|=pod\uffff?(.+?)\uffff?(?:\s*)?=cut/g, // remove not needed ' # ' and tabs at the beginning inlineRegExp: /^(\s*)?(#)[ ]?/gm };