is-regex is a JavaScript module that checks whether a given value is a JS regular expression, including cases that work across realms and iframes. It can be useful in validation logic where you need to distinguish regex objects from other values, for example returning true for /a/g and new RegExp('a','g').
Project status
- The repository shows evidence of maintenance activity, with versioned updates in late 2024 (v1.2.0 on 2024-11-30, v1.2.1 on 2024-12-12), though earlier activity was much older (v1.1.4 in 2021-08-06).
- The apparent update cadence is intermittent rather than steady, with a long gap from 2021 to 2024, followed by two updates within about two weeks.
AI summary generated Today
Recent updates
v1.2.1
12/12/2024Version bump to v1.2.1 with a small internal refactor in index.js and dependency updates. The publisher release notes are missing, so the changes below are only discoverable from the actual diff.
v1.2.0
11/30/2024No release notes were provided in the publisher metadata for v1.2.0. The diff shows a refactor of the runtime isRegex implementation (and its TypeScript typings) plus broader build and CI packaging changes.
v1.1.4
8/6/2021Release v1.1.4 was published on 2021-08-06, but no release notes were provided by the publisher. As a result, there is no documented information about new features, breaking changes, bug fixes, security, performance, or dependency updates in this release.