ng-zorro-antd-mobile
Version:
An enterprise-class mobile UI components based on Ant Design and Angular
20 lines • 694 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.validateName = void 0;
/**
* @license
* Copyright Google Inc. 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.io/license
*/
const core_1 = require("@angular-devkit/core");
const schematics_1 = require("@angular-devkit/schematics");
function validateName(name) {
if (name && /^\d/.test(name)) {
throw new schematics_1.SchematicsException(core_1.tags.oneLine `name (${name})
can not start with a digit.`);
}
}
exports.validateName = validateName;
//# sourceMappingURL=validation.js.map
;