Skip to content

Combo pattern fails when operands set singlematch flag and/or max_offset #240

@ghost

Description

The following test cases show unintuitive behavior when running on "buffer": b"0123"

"patterns": [ "/(1 & 2)/C", "/01/H", "/23/H", ], "result": [1, 2]
"patterns": [ "/(1 & 2)/HC", "/01/H{max_offset=2}", "/23/H", ], "result":[1, 2]
"patterns": [ "/(1 & 2)/C", "/01/H{max_offset=2}", "/23/H", ], "result": [1, 2]

Expected behavior:
"patterns": [ "/(1 & 2)/HC", "/01/H", "/23/H", ], "result": [1, 2, 0]

Metadata

Metadata

Assignees

Labels

not a bugThis isn't actually a bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions