Menu icon Foundation

My Posts

No Content

My Comments

Sacha Corazzi commented on Marc Balmer's post over 5 years

Hi Marc,

I was having this problem too.

Unfortunately, I haven't come up with a way of excluding certain elements with an abide form, but I did sort the password issue.

Open up your foundation.min.js (if you're using that) or your foundation.abide.js, then find this part:

 password : /(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/,

The dotall regex pattern isn't in JavaScript. Instead, you'd be wanting to use

/[\s\S]/

which basically matches any whitespace or non-whitespace character.

I'm testing it now, and it works perfectly. Good luck!

Posts Followed


Following

    No Content

Followers

My Posts

No Content

My Comments

You commented on Marc Balmer's post over 5 years

Hi Marc,

I was having this problem too.

Unfortunately, I haven't come up with a way of excluding certain elements with an abide form, but I did sort the password issue.

Open up your foundation.min.js (if you're using that) or your foundation.abide.js, then find this part:

 password : /(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/,

The dotall regex pattern isn't in JavaScript. Instead, you'd be wanting to use

/[\s\S]/

which basically matches any whitespace or non-whitespace character.

I'm testing it now, and it works perfectly. Good luck!

Posts Followed

Following

  • No Content

Followers

  • No Content