DEV Community

Discussion on: #25 - Remove consecutive duplicate words CodeWars Kata (7 kyu)

Collapse
 
lexlohr profile image
Alex Lohr

It inserts the first match inside brackets.

Thread Thread
 
cesar__dlr profile image
Cesar Del rio

Oh right, so it just leaves the first match and the other one gets replaced, am I rigth?

Thread Thread
 
lexlohr profile image
Alex Lohr

Exactly.

Thread Thread
 
cesar__dlr profile image
Cesar Del rio

cool 🔥