Skip to content

Commit 210f779

Browse files
committed
Wrong documentation for component-name rule
1 parent 016d5ab commit 210f779

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/controller-name.js

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ angular.module('myModule').controller('MyController', function () {
33
// ...
44
});
55

6-
// example - valid: false, errorMessage: "The MyCtrl controller should follow this pattern\: /[A-Z].*Controller$/"
6+
// example - valid: false, errorMessage: "The MyCtrl controller should follow this pattern\: /^[A-Z][a-zA-Z0-9]*Controller$/"
77
angular.module('myModule').controller('MyCtrl', function () {
88
// ...
99
});

0 commit comments

Comments
 (0)