Skip to content

SyntaxError: Invalid regular expression in the autocomplete species form "Locus from reference genome" #177

@dgruano

Description

@dgruano

This is a funky one, don't ask.

While trying to type pombe, I mistyped /[po in the species search form in the "Locus from reference genome" search. The app crashed and I got the following console errors:

SyntaxError: Invalid regular expression: //[po/: Unterminated character class (at index-d4b73013.js:1329:2134)

Error: Minified React error #300; visit https://reactjs.org/docs/error-decoder.html?invariant=300 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.

I have not looked deeper into this, but I can tell you it does not show the same behavior in the "Gene selection" form.

We should try to catch these regex errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions