Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
clientside_validation
Commits
144371aa
Commit
144371aa
authored
Jul 10, 2014
by
jelles
Browse files
Issue #2266333 by ardeso, fastangel: Fixed Problem with regex expression and commerce.
parent
a4494db7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
clientside_validation.js
clientside_validation.js
+6
-1
No files found.
clientside_validation.js
View file @
144371aa
...
...
@@ -984,7 +984,12 @@
return
this
.
optional
(
element
);
}
else
{
var
regexp
=
new
RegExp
(
param
.
regex
[
0
],
param
.
regex
[
1
]);
var
modifier
=
param
.
regex
[
1
];
var
valid_modifiers
=
[
'
i
'
,
'
g
'
,
'
m
'
];
if
(
jQuery
.
inArray
(
modifier
,
valid_modifiers
)
===
-
1
)
{
modifier
=
''
;
}
var
regexp
=
new
RegExp
(
param
.
regex
[
0
],
modifier
);
if
(
regexp
.
test
(
value
)){
return
!
param
.
negate
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment