Skip to content

Ranges cause invalid Regex #22

Open
@jduncanator

Description

@jduncanator

When using the .Range method with range arrays greater than 3, it causes invalid Regex to be output. An example can be seen with the following snippet taken from a Unit test and modified:

var verbEx = VerbalExpressions.DefaultExpression;
object[] range = new object[4] { 1, 6, 7, 12 };
verbEx.Range(range);

That expression outputs [1-126-7] which is obviously invalid regex. Not sure what is supposed to happen here? Maybe throw an ArgumentException?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions