Closed egoexpress closed 2 months ago
is_valid_shell() breaks when you provide an input that is not proper JSON.
is_valid_shell()
SyntaxError: Unexpected number in JSON at position 1 at JSON.parse (<anonymous>)
This PR adds a try/catch to prevent that. It also adds the unit tests for is_valid_shell() that were missing.
is_valid_shell()
breaks when you provide an input that is not proper JSON.This PR adds a try/catch to prevent that. It also adds the unit tests for
is_valid_shell()
that were missing.