/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/src/app/shared/normalized-version.ts
19 строк
670 B
Kristiyan Kostadinov
build: reuse tslint rules for docs site and fix failures
29 апр 2025, 15:02
29 апр 2025, 15:02
da9627d
Код
Авторство
О чём код?
/** * @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 */ import {VERSION} from '@angular/material/core'; /** * Normalized Material version without its additional SHA information if present. * * Snapshot builds of Angular will include these as part of their ng-dev release * stamping. We only want to show the SHA details in the footer of the page. * * e.g. `14.0.0-next.3+38.sha-9d233f4` should become `14.0.0-next.3` */ export const normalizedMaterialVersion = VERSION.full.match(/(\d+\.\d+\.\d+(?:[^\+]*))/)![1];