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
ec814bb0
Commit
ec814bb0
authored
Mar 06, 2016
by
git
Committed by
Peter Droogmans
Mar 06, 2016
Browse files
Issue #2681371 by davy-r: webform_validation regexi support is missing
parent
7a682f2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
clientside_validation_webform/clientside_validation_webform.module
...e_validation_webform/clientside_validation_webform.module
+7
-1
No files found.
clientside_validation_webform/clientside_validation_webform.module
100644 → 100755
View file @
ec814bb0
...
@@ -319,10 +319,16 @@ function clientside_validation_webform_add_webform_validation($form_id, &$form,
...
@@ -319,10 +319,16 @@ function clientside_validation_webform_add_webform_validation($form_id, &$form,
}
}
break
;
break
;
case
'regex'
:
case
'regex'
:
case
'regexi'
:
foreach
(
$webform_validation_rule
[
'components'
]
as
$component
)
{
foreach
(
$webform_validation_rule
[
'components'
]
as
$component
)
{
if
(
$webform_validation_rule
[
'validator'
]
==
'regexi'
)
{
$modifiers
=
'i'
;
}
else
{
$modifiers
=
''
;
}
$message
=
$webform_validation_rule
[
'error_message'
];
$message
=
$webform_validation_rule
[
'error_message'
];
$expression
=
$webform_validation_rule
[
'data'
];
$expression
=
$webform_validation_rule
[
'data'
];
_clientside_validation_set_regex
(
$component
[
'element_name'
],
$component
[
'element_title'
],
$js_rules
,
$expression
,
$message
,
''
,
'regex'
,
$negate
);
_clientside_validation_set_regex
(
$component
[
'element_name'
],
$component
[
'element_title'
],
$js_rules
,
$expression
,
$message
,
$modifiers
,
'regex'
,
$negate
);
}
}
break
;
break
;
case
'must_be_empty'
:
case
'must_be_empty'
:
...
...
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