diff --git a/guide/english/certifications/coding-interview-prep/algorithms/no-repeats-please/index.md b/guide/english/certifications/coding-interview-prep/algorithms/no-repeats-please/index.md index 27827d75af..2333677cda 100644 --- a/guide/english/certifications/coding-interview-prep/algorithms/no-repeats-please/index.md +++ b/guide/english/certifications/coding-interview-prep/algorithms/no-repeats-please/index.md @@ -97,11 +97,11 @@ A way to visualize this is by considering a tree that starts with the first char function permAlone(str) { // Create a regex to match repeated consecutive characters. - var regex = /(.)\1+/g; + var regex = /(.)\1+/; // Split the string into an array of characters. var arr = str.split(''); - var permutations = ]; + var permutations = []; var tmp; // Return 0 if str contains same character.