* Validate component names
(options)
| 1403 | * Validate component names |
| 1404 | */ |
| 1405 | function checkComponents (options) { |
| 1406 | for (var key in options.components) { |
| 1407 | validateComponentName(key); |
| 1408 | } |
| 1409 | } |
| 1410 | |
| 1411 | function validateComponentName (name) { |
| 1412 | if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) { |
no test coverage detected