Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 !== '') {
Comment | File | Size | Author |
---|---|---|---|
#2 | clientside_validation.js_.patch | 726 bytes | NicA109 |
Comments
Comment #1
NicA109 CreditAttribution: NicA109 commentedComment #2
NicA109 CreditAttribution: NicA109 commentedComment #3
DrupalGideonI know this is an old issue but this works for me too, I was wondering why the case insensitive flag was not working.
Thanks.
Comment #4
kaidawai CreditAttribution: kaidawai commentedlooks 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.
Comment #5
nikunjkotecha