angular-cn/aio/tools/transforms/examples-package/services/region-matchers/html.js

8 lines
320 B
JavaScript
Raw Normal View History

// These kind of comments are used in HTML
module.exports = {
regionStartMatcher: /^\s*<!--\s*#docregion\s*(.*?)\s*(?:-->)?\s*$/,
regionEndMatcher: /^\s*<!--\s*#enddocregion\s*(.*?)\s*-->\s*$/,
plasterMatcher: /^\s*<!--\s*#docplaster\s*(.*?)\s*-->\s*$/,
createPlasterComment: plaster => `<!-- ${plaster} -->`
};