Skip to content

Error parsing regex : Unicode-aware Perl class not found #151

@michaelbeaumont

Description

@michaelbeaumont

In spite of enabling the regex and unicode features:

error: invalid regex: regex parse error:
           ^(\d{1,5}|\d{1,5}-\d{1,5})$
             ^^
       error: Unicode-aware Perl class not found (make sure the unicode-perl feature is enabled)
  --> openapi/src/models/listener_config_ports_inner.rs:21:20
   |
21 |            pattern("^(\\d{1,5}|\\d{1,5}-\\d{1,5})$"),

The error goes away when I enable phonenumber, I'm assuming because phonenumber depends on regex with default features.

Maybe unicode should enable some of the unicode-* features of regex?

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