diff options
| author | Vojta Jina | 2013-04-30 11:47:23 -0700 |
|---|---|---|
| committer | Vojta Jina | 2013-04-30 14:38:14 -0700 |
| commit | de2cdb0658b8b8cff5a59e26c5ec1c9b470efb9b (patch) | |
| tree | e782f1f53abe9d0780c3863641eb4ef4521a6c0e /src/ng/controller.js | |
| parent | cda7b71146f6748116ad5bbc9050ee7e79a9ce2b (diff) | |
| download | angular.js-de2cdb0658b8b8cff5a59e26c5ec1c9b470efb9b.tar.bz2 | |
fix(ngController): allow dots in a controller name
The issue was introduced in cd38cbf975b501d846e6149d1d993972a1af0053
Diffstat (limited to 'src/ng/controller.js')
| -rw-r--r-- | src/ng/controller.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ng/controller.js b/src/ng/controller.js index cfd730e4..5c19cf88 100644 --- a/src/ng/controller.js +++ b/src/ng/controller.js @@ -12,7 +12,7 @@ */ function $ControllerProvider() { var controllers = {}, - CNTRL_REG = /^(\w+)(\s+as\s+(\w+))?$/; + CNTRL_REG = /^(\S+)(\s+as\s+(\w+))?$/; /** |
