Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c6b2e70

Browse files
committedMar 12, 2015
- Change back to &&
1 parent 4b49c31 commit c6b2e70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/ng/compile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
781781

782782
function assertValidDirectiveName(name) {
783783
var letter = name.charAt(0);
784-
if (letter || letter !== lowercase(letter)) {
784+
if (letter && letter !== lowercase(letter)) {
785785
throw ngMinErr('badname', "Directive name '{0}' is invalid. The first letter of a directive must be a lowercase letter");
786786
}
787787
return name;

0 commit comments

Comments
 (0)
This repository has been archived.