nghuuphuoc/bootstrapvalidator — pull request #1136 by jonasesteves (2014-11-13 13:55:37+00:00)
Title: Update id.js

I updated the lines:
if (/^1{11}|2{11}|3{11}|4{11}|5{11}|6{11}|7{11}|8{11}|9{11}|0{11}$/.test(value)) {
return false;
}
if (!/^\d{11}$/.test(value) && !/^\d{3}\.\d{3}\.\d{3}-\d{2}$/.test(value)) {
return false;
}
value = value.replace(/\./g, '').replace(/-/g, '');

to the lines:

if (!/^\d{11}$/.test(value) && !/^\d{3}\.\d{3}\.\d{3}-\d{2}$/.test(value)) {
return false;
}
value = value.replace(/\./g, '').replace(/-/g, '');
if (/^1{11}|2{11}|3{11}|4{11}|5{11}|6{11}|7{11}|8{11}|9{11}|0{11}$/.test(value)) {
return false;
}

cause there was a problem with jquery mask plugin.