Skip to content
This repository was archived by the owner on Jul 1, 2020. It is now read-only.

Commit a05982f

Browse files
authored
Merge pull request #163 from noherczeg/patch-2
fix Cannot read property 'indexOf' of undefined
2 parents b6c3799 + 68e0e17 commit a05982f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validation-common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ angular
178178
self = analyzeElementAttributes(self);
179179

180180
// get the rules(or validation), inside directive it's named (validation), inside service(rules)
181-
var rules = self.validatorAttrs.rules || self.validatorAttrs.validation;
181+
var rules = self.validatorAttrs.rules || self.validatorAttrs.validation || '';
182182

183183
// We first need to see if the validation holds a custom user regex, if it does then deal with it first
184184
// So why deal with it separately? Because a Regex might hold pipe '|' and so we don't want to mix it with our regular validation pipe

0 commit comments

Comments
 (0)