Limit regex repetition to 255
authorStefan Huber <shuber@sthu.org>
Wed, 17 Feb 2021 10:09:23 +0000 (11:09 +0100)
committerStefan Huber <shuber@sthu.org>
Wed, 17 Feb 2021 19:29:04 +0000 (20:29 +0100)
The BSD implementation of regex has RE_DUP_MAX set to 255, e.g., see man
3 regex for openbsd. Limit the patterns to 255 to support mutt on BSD,
like Mac OS X (Darwin).

Fixes #1 (github)

Reported-by: reportaman

No differences found