There seems to be a typo or wrong variable being used in the clientside_validation.js at line 923.

It seems that the "mod" variable is never populated from the "modraw" variable and never gets passed to the XRegExp class, which prevents in my case "/^[a-z0-9]$/i" from working with "ABC".

I have fixed this my changing:

from:
if (mod !== '') {

to:
if (modraw !== '') {

CommentFileSizeAuthor
#2 clientside_validation.js_.patch726 bytesNicA109

Comments

NicA109’s picture

Issue summary: View changes
NicA109’s picture

StatusFileSize
new726 bytes
drupalgideon’s picture

Status: Active » Reviewed & tested by the community

I know this is an old issue but this works for me too, I was wondering why the case insensitive flag was not working.

Thanks.

kaidawai’s picture

looks good to me.
one variable is what was given and the other should be the translation(mods php <-> mofs xregxp) that is passed on.
i don't know anymore maybe there was a translation step which turned out to cause more problem than it solved an we removed it or something. but keep in mind that some mods might need translation and/or filtering.

nikunjkotecha’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.