Skip to content

When you pass a string to R.test instead of a regex, it always returns true #1413

@albrow

Description

@albrow

The following code returns true:

R.test('foo', 'bar')

Here it is in the repl.

This seems like a pretty easy mistake to make, and I think the appropriate behavior is to throw an exception and point out that the first argument is not the correct type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions