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.
@jhoffner thanks for updating to /\n/g but yep I'm trying to forbid that too...
Do you guys still having this issue?
Same error after disabling Docker. Any other advice?
Really was looking forward to finishing this kata..
EDIT: Never mind! Apparently I just had to wait a few minutes. :-)
Same thing happened to me, look at my comment right below yours for a possible solution.
Does this error occur if I'm using regex?
The funny thing is...I'm not using regex. Halp?
Good call, I had completely forgotten I had that on. Thanks!
Codewars is in the middle of rolling out the new Docker system to the user base and you are on the new system (or you have manually opted in via the account settings page). The updated framework uses RegExp internally which is why this is having issues. We are updating the code to use
/\n/g
instead to prevent this from happening.Notice BTW how easy it is to bypass the lack of RegExp being defined. Its a language feature and as such I don't think it is possible to fully disable regular expressions.
EDIT: NM, I just noticed the Function toString hack to check for literal notation.
This comment is hidden because it contains spoiler information about the solution
Hi,
Do you still have the issue?
I'm trying with the code you posted here but I don't have this error. I got: "Test Failed: Invalid chars count! - Expected: 17, instead got: 16" on the 9th test case.
Maybe you didn't paste your whole code?
Remember: Regex are not allowed!
Tip: internally, RegExp has been setted to undefined like that :
This comment is hidden because it contains spoiler information about the solution