We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28cef30 commit ecffe2cCopy full SHA for ecffe2c
src/main/java/fr/umontp/edt/outils/OutilsProfesseur.java
@@ -66,7 +66,7 @@ public static String formater(String nom, String prenom) {
66
*/
67
public static String formater(String nomPrenom) {
68
nomPrenom = supprimerAccentuation(nomPrenom);
69
- return nomPrenom.toUpperCase(Locale.FRANCE).replaceAll("[^A-Z ]", "");
+ return nomPrenom.toUpperCase(Locale.FRANCE).replaceAll("[^A-Z ]|(?<=\\S)\\s(?=\\S)", "");
70
}
71
72
0 commit comments