MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / identifierForController

Function identifierForController

lib/test/angular/1.8.0/angular.js:11640–11646  ·  view source on GitHub ↗
(controller, ident)

Source from the content-addressed store, hash-verified

11638
11639var CNTRL_REG = /^(\S+)(\s+as\s+([\w$]+))?$/;
11640function identifierForController(controller, ident) {
11641 if (ident && isString(ident)) return ident;
11642 if (isString(controller)) {
11643 var match = CNTRL_REG.exec(controller);
11644 if (match) return match[3];
11645 }
11646}
11647
11648
11649/**

Callers 1

factoryFunction · 0.70

Calls 1

isStringFunction · 0.70

Tested by

no test coverage detected