From e120e192e65bc13463bc739dd47d6b5f61788dc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa=20Candela=20Paez?= <95256@sistemas.frc.utn.edu.ar> Date: Sat, 30 May 2026 12:50:54 -0300 Subject: [PATCH] fix correct regex in bob mentoring common suggestions. The regex /A-Z/ was missing square brackets and would match the literal string "A-Z" instead of any uppercase letter. Fixed to /[A-Z]/. --- tracks/javascript/exercises/bob/mentoring.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracks/javascript/exercises/bob/mentoring.md b/tracks/javascript/exercises/bob/mentoring.md index e8260dbcd..9450a0ea7 100644 --- a/tracks/javascript/exercises/bob/mentoring.md +++ b/tracks/javascript/exercises/bob/mentoring.md @@ -72,7 +72,7 @@ solutions did not require nesting of the tests. The extra response makes it more interesting in some languages, but in JavaScript it doesn't. ### Common suggestions -- If a student uses the complicated `RegExp` of `isShouting`, discuss its use over a simpler `message.toUpperCase() === message && /A-Z/.test(message)` which checks if there is at least one letter. +- If a student uses the complicated `RegExp` of `isShouting`, discuss its use over a simpler `message.toUpperCase() === message && /[A-Z]/.test(message)` which checks if there is at least one letter. - If a student uses the correct `RegExp` but does _not_ use the `^` or `$` boundaries, explain how we're trying to match the entire message and not part of it. The tests won't raise a false positive, but other input might. ### Talking points