Form validation with type regex returns error e.proxy(…) is not a function

When i try to use validation form with field type regex, console return an error:

TypeError: e.proxy(...) is not a function in dist/semantic.min.js

Anyone has same problem?
Version of jQuery: 1.11.3 (also tried with 2.x)

I’m using this code:

$('.ui.form').form({
postcode: {
    identifier : 'postcode',
    rules: [{
        type   : 'regex[^[a-zA-Z -]+$]', //g;
        prompt : 'Podaj prawidłowy kod pocztowy'
    }]
}
},{
onSuccess: function(){
    alert('success');
    return false;
},
onFailure: function(){
    return false;
},
inline : true,
on     : 'blur'});


Source: forms

Leave a Reply