From 4a8a0df7816c85ba80f5f24756d5f757bea7c0f7 Mon Sep 17 00:00:00 2001 From: zanninso Date: Fri, 11 Aug 2023 02:04:25 +0100 Subject: [PATCH] fix: minor typos --- subjects/java/piscine/RegexReplace/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subjects/java/piscine/RegexReplace/README.md b/subjects/java/piscine/RegexReplace/README.md index 5e4fabe59..7d916935d 100644 --- a/subjects/java/piscine/RegexReplace/README.md +++ b/subjects/java/piscine/RegexReplace/README.md @@ -6,7 +6,7 @@ Create a file `RegexReplace.java`. Write a function `removeUnits` that returns the string where the units `cm` and `€` are removed if they follow directly a number and followed by a space. Write a function `obfuscateEmail` that returns a string where parts of email addresses are replaced by '*' if they follow the rules below: -- Hide from the username any character next to `-`, `.` or `_` if they exist. Otherwise, hide 3 characters from the username if its length > 3 +- Hide from the username any character next to `-`, `.` or `_` if they exist. Otherwise, hide 3 characters at most from the username if its length > 3 - If the remaining part after `@` is in the format `@..`, then hide the third and top level domains, otherwise hide the second level domain and the top level domain if it is not included in `.com`, `.org` and `.net`. ### Expected Functions @@ -50,7 +50,7 @@ $ java -cp build ExerciseRunner 32 cm et 50 € 32cms et 50€! l lapin jou à la bel ball avec d animau rigolo pour gagner l bill bleu -joh****@*******.com +john.***@*******.com jan*@*******.co.*** jac***@*******.** $