Skip to content

Conversation

@nickanderson
Copy link
Member

The packages promise method for pip fails with error:

error: Regular expression error: 'invalid range in character class' in expression '^([[:alnum:]-_]+\s\([\d.]+\))' (offset: 13)

This is probably a regression after upgrading from PCRE to PCRE2.

The regex engine complains about the hyphen, which has a special meaning
within the square brackets. The bug is easily fixed by escaping the
hyphen.

Ticket: ENT-13667
Changelog: Title
Signed-off-by: Lars Erik Wik lars.erik.wik@northern.tech
(cherry picked from commit 8871aef)

The packages promise method for pip fails with error:
```
error: Regular expression error: 'invalid range in character class' in expression '^([[:alnum:]-_]+\s\([\d.]+\))' (offset: 13)
```

This is probably a regression after upgrading from PCRE to PCRE2.

The regex engine complains about the hyphen, which has a special meaning
within the square brackets. The bug is easily fixed by escaping the
hyphen.

Ticket: ENT-13667
Changelog: Title
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
(cherry picked from commit 8871aef)
@larsewi larsewi merged commit 49f01c3 into cfengine:3.27.x Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants