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

Function identifierForController

lib/test/angular/1.7.0/angular.js:11006–11012  ·  view source on GitHub ↗
(controller, ident)

Source from the content-addressed store, hash-verified

11004
11005var CNTRL_REG = /^(\S+)(\s+as\s+([\w$]+))?$/;
11006function identifierForController(controller, ident) {
11007 if (ident && isString(ident)) return ident;
11008 if (isString(controller)) {
11009 var match = CNTRL_REG.exec(controller);
11010 if (match) return match[3];
11011 }
11012}
11013
11014
11015/**

Callers 1

factoryFunction · 0.70

Calls 1

isStringFunction · 0.70

Tested by

no test coverage detected