fix(aio): handle html docregions that do not end on the same line
This commit is contained in:

committed by
Igor Minar

parent
6a9251874b
commit
649bab8ff8
@ -1,7 +1,7 @@
|
||||
// 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*$/,
|
||||
regionStartMatcher: /^\s*<!--\s*#docregion\s*(.*?)\s*(?:-->)?\s*$/,
|
||||
regionEndMatcher: /^\s*<!--\s*#enddocregion\s*(.*?)\s*-->\s*$/,
|
||||
plasterMatcher: /^\s*<!--\s*#docplaster\s*(.*?)\s*-->\s*$/,
|
||||
createPlasterComment: plaster => `<!-- ${plaster} -->`
|
||||
};
|
||||
|
Reference in New Issue
Block a user