From ff09dc5b19a01c681a9944176ad2e51157bd580b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa=20Candela=20Paez?= <95256@sistemas.frc.utn.edu.ar> Date: Sat, 13 Jun 2026 19:22:30 -0300 Subject: [PATCH] fix correct regex flag placement in rna-transcription TypeScript mentoring The regex /[CGAT]g/ had the global flag 'g' inside the character class instead of after the closing slash. Fixed to /[CGAT]/g so it correctly applies the global flag. --- tracks/typescript/exercises/rna-transcription/mentoring.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracks/typescript/exercises/rna-transcription/mentoring.md b/tracks/typescript/exercises/rna-transcription/mentoring.md index 991138483..40b924f1f 100644 --- a/tracks/typescript/exercises/rna-transcription/mentoring.md +++ b/tracks/typescript/exercises/rna-transcription/mentoring.md @@ -42,7 +42,7 @@ return sequence.replace(/./g, (nucleotide) => /* */) Variations include replacing only the "known" nucleotides: ```typescript -sequence.replace(/[CGAT]g/, (nucleotide) => /* */) +sequence.replace(/[CGAT]/g, (nucleotide) => /* */) ``` ## Common suggestions