Back to Explore

micromatch/to-regex-range

GitHub
1 watchersOpen source

Last release: 4/7/2019

This library generates a regex-compatible string for matching a numeric range, based on two input numbers (min and max). It’s useful when you need to build validation regular expressions for numbers, ranges, years, or similar values, and it includes options for capture wrapping, shorthand digit matching, and relaxing or enforcing zero padding.

Project status

  • The upstream repository shows recent activity (last push reported as 2024-08-01), which suggests the project is at least being maintained on GitHub, even though no newer version details are included in the provided update summaries.
  • Published updates appear infrequent, with version bumps in 2018 (4.0.1, 4.0.2) and 2019 (5.0.1), and no further versioned updates shown after 2019 in the provided list.

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • 5.0.1

    4/7/2019

    Release 5.0.1 contains substantial internal refactoring of the regex range generation logic, with changes that affect the exact generated regex source string. No publisher release notes were provided for this version, so behavioral changes must be inferred from the code diff.

  • 4.0.2

    7/25/2018

    Release 4.0.2 contains no provided release notes. The code diff is small but changes internal iteration logic in index.js (zip) and updates README documentation including regenerated example outputs and test timing.

  • 4.0.1

    7/4/2018

    Release 4.0.1 was published on 2018-07-04, but no release notes were provided by the publisher. No documented changes, feature additions, fixes, or breaking behavior details are available from the release notes.