Ad
  • Custom User Avatar

    @jhoffner thanks for updating to /\n/g but yep I'm trying to forbid that too...

    Do you guys still having this issue?

  • Custom User Avatar

    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.

  • Custom User Avatar

    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 :

    // Disallow RegExp
    RegExp = undefined;