Skip to content

minLength maxLength wrong format string #65

@vankop

Description

@vankop
  • Operating System:
  • Node Version:
  • NPM Version:
  • webpack Version:
  • schema-utils Version:

Expected Behavior

For

{
      "format": "[0-9]*",
      "minLength": 10
}

Expect:
should be longer than 9 characters

Actual Behavior

should be shorter than 10 characters

Code

https://github.com/webpack/schema-utils/blob/master/src/ValidationError.js#L412

Same for maxLength

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions