We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cb55c7 commit eba3571Copy full SHA for eba3571
gentelella/form-field-text/form-field-text.component.js
@@ -29,7 +29,7 @@ angular
29
self.$onInit = function () {
30
if (!self.fieldType) self.fieldType = 'text';
31
// http://stackoverflow.com/questions/28731451/is-it-possible-to-use-ng-pattern-with-a-variable
32
- self.pattern = new RegExp(self.fieldPattern);
+ if (self.fieldPattern) self.pattern = new RegExp(self.fieldPattern);
33
}
34
35
]
0 commit comments