Reuse Patterns Using Capture Groups - hint 1 typo?

Tell us what’s happening:
I’m looking at the “Get a hint” page for Reuse Patterns Using Capture Groups. Here’s the URL:

I think there is a slight typo on this page for hint 1. Hint 1 explains how the capture group can be re-written without a capture group, and so it offers this translation:

let re = /(test)\s\1;
let literalRe = /test\stest;

But am I correct the opening “/” is present, but the closing “/” is missing? So I think correct code example should read:

let re = /(test)\s\1/;
let literalRe = /test\stest/;

Your code so far


let repeatNum = "42 42 42";
let reRegex = /(\d+)\s\1/; // Change this line
let result = reRegex.test(repeatNum);
console.log(result);

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:63.0) Gecko/20100101 Firefox/63.0.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/reuse-patterns-using-capture-groups