Skip to content

Commit

Permalink
refactor(SHS-5954): Minor changes from SWS
Browse files Browse the repository at this point in the history
  • Loading branch information
codechefmarc committed Jan 14, 2025
1 parent 7dc1edf commit d0059c1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,12 @@ public static function validateUrl(array &$element, FormStateInterface $form_sta
if (str_starts_with($value, 'mailto')) {
if (!preg_match($mailto_regex, $value)) {
$form_state->setError($element, t('The mailto link must include a valid email address (e.g., mailto:example@example.com).'));
return;
}
return;
}
else {
URL::validateUrl($element, $form_state, $complete_form);
}

URL::validateUrl($element, $form_state, $complete_form);

}

/**
Expand Down

0 comments on commit d0059c1

Please sign in to comment.