I'm using regex validate for phone number on my website. The validate work fine that I have a strange case. When I go to checkout commerce and fail the validate (after click submit function) the regex is added to times on the settings and is used on the second parameter of regex object and break the javascript. I did a little patch to validate the modifiers on the regex object and then work.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ardeso’s picture

FileSize
545 bytes

I have a webform with regex validation and a block with ajax request in the same page. Ajax break the javascript validation. I think it's a general problem not only with commerce. I did a patch, maybe it will help others.

attiks’s picture

What is wrong with the other patch?

Jelle_S’s picture

Status: Needs review » Fixed

Fixed in latest dev version. Thanks for the patch!

  • Jelle_S committed 144371a on 7.x-1.x
    Issue #2266333 by ardeso, fastangel: Fixed Problem with regex expression...

  • Jelle_S committed 144371a on 7.x-2.x
    Issue #2266333 by ardeso, fastangel: Fixed Problem with regex expression...

Status: Fixed » Closed (fixed)

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