Skip to content

Regex "|" incorrectly recognized as invalid #326

@alexios-angel

Description

@alexios-angel

The regex below is being recognized as invalid by CTRE:

|

Regex101 link

#include <ctre.hpp>

int main(){
    ctre::match<"|">;
    
    // Below works
    //ctre::match<"(|)">;
}

Compiler explorer link

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