Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
SolutionTest
randomTests
Log
JgAF
UHDWb
l
Jm
y
w
ecUPZc
expected:<ecUPZ[y IBOscgUZKji]c> but was:<ecUPZ[]c>
Stack Trace
Completed in 23ms
fixedTests
Log
exampleexample
exampleexample
example example
a e
a
hello example something
Test Passed
WTF?(((
You should add
console.log(s)
at the beginning of your function to see the whole input.And that's not your only problem but the
*
quantifier is greedy...Closing the issue since it's a problem with your code, not a problem with the kata itself.
i wonder where to find a parentheses in here: 'hello example here something' should equal
and i don't understand why the output is like this: 'hello example something'
it looks for me that the function is only deleting -here - in the string, that does not make any sence to me, since the description is talking about remove parentheses and the content inside them....