Loading modules/social_features/social_tagging/social_tagging.module +1 −4 Original line number Diff line number Diff line Loading @@ -563,10 +563,7 @@ function social_tagging_form_views_exposed_form_alter(&$form, FormStateInterface * A machine name so it can be used pogrammatically. */ function social_tagging_to_machine_name($text) { $text = strtolower($text); $text = str_replace(' ', '', $text); return $text; return preg_replace('@[^a-z0-9-]+@', '_', strtolower($text)); } /** Loading Loading
modules/social_features/social_tagging/social_tagging.module +1 −4 Original line number Diff line number Diff line Loading @@ -563,10 +563,7 @@ function social_tagging_form_views_exposed_form_alter(&$form, FormStateInterface * A machine name so it can be used pogrammatically. */ function social_tagging_to_machine_name($text) { $text = strtolower($text); $text = str_replace(' ', '', $text); return $text; return preg_replace('@[^a-z0-9-]+@', '_', strtolower($text)); } /** Loading