UNPKG

@ng-doc/builder

Version:

<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>

13 lines 454 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.varNameValidation = varNameValidation; /** * * @param name */ function varNameValidation(name) { if (!/^[a-zA-Z_$][a-zA-Z_$0-9]*$/.test(name)) { throw new Error(`Variable name cannot be generated automatically based on the name "${name}". Please provide "--name" option with valid variable name.`); } } //# sourceMappingURL=var-name-validation.js.map