Commit b5f34e48 authored by sgerrand's avatar sgerrand Committed by Jelle
Browse files

Issue #1995314 by sgerrand: Fixed Access method on regex string fails in IE7+ browsers.

parent d3d3f5e8
......@@ -538,7 +538,7 @@ Drupal.clientsideValidation.prototype.addExtraRules = function(){
var result = true;
for (var i = 0; i < param.expressions.length; i++) {
var reg = param.expressions[i];
var delim = reg.lastIndexOf(reg[0]);
var delim = reg.lastIndexOf(reg.charAt(0));
// Only allow supported modifiers
var modraw = reg.substr(delim + 1) || '';
var mod = '';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment