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

Function identifierForController

lib/test/angular/1.5.0/angular.js:9724–9730  ·  view source on GitHub ↗
(controller, ident)

Source from the content-addressed store, hash-verified

9722
9723var CNTRL_REG = /^(\S+)(\s+as\s+([\w$]+))?$/;
9724function identifierForController(controller, ident) {
9725 if (ident && isString(ident)) return ident;
9726 if (isString(controller)) {
9727 var match = CNTRL_REG.exec(controller);
9728 if (match) return match[3];
9729 }
9730}
9731
9732
9733/**

Callers 2

parseDirectiveBindingsFunction · 0.70
factoryFunction · 0.70

Calls 1

isStringFunction · 0.70

Tested by

no test coverage detected