@@ -166,7 +166,7 @@ public function fieldSettingsForm(array $form, FormStateInterface $form_state) {
'#type'=>'textfield',
'#title'=>t('Allowed file extensions'),
'#default_value'=>$extensions,
'#description'=>t('Separate extensions with a space or comma and do not include the leading dot.'),
'#description'=>$this->t("Separate extensions with a comma or space. Each extension can contain alphanumeric characters, '.', and '_', and should start and end with an alphanumeric character."),
$form_state->setError($element,t('The list of allowed extensions is not valid, be sure to exclude leading dots and to separate extensions with a comma or space.'));
$form_state->setError($element,t("The list of allowed extensions is not valid. Allowed characters are a-z, 0-9, '.', and '_'. The first and last characters cannot be '.' or '_', and these two characters cannot appear next to each other. Separate extensions with a comma or space."));
$this->assertSession()->pageTextContains("The list of allowed extensions is not valid. Allowed characters are a-z, 0-9, '.', and '_'. The first and last characters cannot be '.' or '_', and these two characters cannot appear next to each other. Separate extensions with a comma or space.");