Skip to content
This repository was archived by the owner on Jul 1, 2020. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
even better failsafe
  • Loading branch information
noherczeg authored Aug 16, 2017
commit 68e0e172806c2e6745ebd9b4b9327afcd03cac28
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.hasOwnProperty('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