MCPcopy
hub / github.com/fanmingming/live / checkComponents

Function checkComponents

m3u8/vue.js:1405–1409  ·  view source on GitHub ↗

* Validate component names

(options)

Source from the content-addressed store, hash-verified

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)) {

Callers 1

mergeOptionsFunction · 0.85

Calls 1

validateComponentNameFunction · 0.85

Tested by

no test coverage detected