Skip to content

Commit ecffe2c

Browse files
committed
🔨 Validation test professeur
1 parent 28cef30 commit ecffe2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/fr/umontp/edt/outils/OutilsProfesseur.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public static String formater(String nom, String prenom) {
6666
*/
6767
public static String formater(String nomPrenom) {
6868
nomPrenom = supprimerAccentuation(nomPrenom);
69-
return nomPrenom.toUpperCase(Locale.FRANCE).replaceAll("[^A-Z ]", "");
69+
return nomPrenom.toUpperCase(Locale.FRANCE).replaceAll("[^A-Z ]|(?<=\\S)\\s(?=\\S)", "");
7070
}
7171

7272
}

0 commit comments

Comments
 (0)