MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / identifierForController

Function identifierForController

lib/test/angular/1.6.7/angular.js:10917–10923  ·  view source on GitHub ↗
(controller, ident)

Source from the content-addressed store, hash-verified

10915
10916var CNTRL_REG = /^(\S+)(\s+as\s+([\w$]+))?$/;
10917function identifierForController(controller, ident) {
10918 if (ident && isString(ident)) return ident;
10919 if (isString(controller)) {
10920 var match = CNTRL_REG.exec(controller);
10921 if (match) return match[3];
10922 }
10923}
10924
10925
10926/**

Callers 1

factoryFunction · 0.70

Calls 1

isStringFunction · 0.70

Tested by

no test coverage detected