google / google/fuzztest

Regex with "|" doesn't work

Open
#1,830 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.1k
Forks
137
Avg merge
3d 6h
Merged PRs (30d)
22

Description

Doing `fuzztest::InRegexp(R"(a)|(b)")` gives the error

```
Failed precondition (re != nullptr): Invalid RE2 regular expression.
```

Is that by design because I am able to do `OneOf(InRegexp(R"(a)"), InRegexp(R"(b)"))` without any errors

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.