MCPcopy Create free account
hub / github.com/ember-cli/ember-cli / startsWithNumber

Function startsWithNumber

lib/utilities/valid-project-name.js:11–13  ·  view source on GitHub ↗

* Checks if the string starts with a number. * * @method startsWithNumber * @return {Boolean}

(name)

Source from the content-addressed store, hash-verified

9 * @return {Boolean}
10 */
11function startsWithNumber(name) {
12 return /^\d.*$/.test(name);
13}
14
15function containsInvalidSlash(name) {
16 let indexOfFirstSlash = name.indexOf('/');

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…