mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
47dc4ffd1a
This reduces code duplication and improves the maintability. PR Close #63357
15 lines
562 B
TypeScript
15 lines
562 B
TypeScript
/*!
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.dev/license
|
|
*/
|
|
|
|
// These kind of comments are used in HTML
|
|
|
|
export const regionStartMatcher = /^\s*<!--\s*#docregion\s*(.*?)\s*(?:-->)?\s*$/;
|
|
export const regionEndMatcher = /^\s*<!--\s*#enddocregion\s*(.*?)\s*-->\s*$/;
|
|
export const plasterMatcher = /^\s*<!--\s*#docplaster\s*(.*?)\s*-->\s*$/;
|
|
export const createPlasterComment = (plaster: string) => `<!-- ${plaster} -->`;
|