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

Commit

Permalink
Merge pull request #163 from noherczeg/patch-2
Browse files Browse the repository at this point in the history
fix Cannot read property 'indexOf' of undefined
  • Loading branch information
ghiscoding authored Aug 16, 2017
2 parents b6c3799 + 68e0e17 commit a05982f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validation-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ angular
self = analyzeElementAttributes(self);

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

// We first need to see if the validation holds a custom user regex, if it does then deal with it first
// 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
Expand Down

0 comments on commit a05982f

Please sign in to comment.