* Checks if the string starts with a number. * * @method startsWithNumber * @return {Boolean}
(name)
| 9 | * @return {Boolean} |
| 10 | */ |
| 11 | function startsWithNumber(name) { |
| 12 | return /^\d.*$/.test(name); |
| 13 | } |
| 14 | |
| 15 | function containsInvalidSlash(name) { |
| 16 | let indexOfFirstSlash = name.indexOf('/'); |
no outgoing calls
no test coverage detected
searching dependent graphs…