This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
4.2.4
->5.1.1
Release Notes
slevithan/xregexp (xregexp)
v5.1.1
Compare Source
v5.1.0
Compare Source
Breaking Changes
XRegExp.matchRecursive
: When doing a global, non-sticky search and providingvalueNames
, return an empty array if no matches are found, rather than an array with one object containing abetween
value that contains the whole target string (this change is to match every other case when no matches are found, e.g. when not providingvalueNames
, not using global with flagg
, or doing a sticky search with flagy
):6e1711e
Improvements
XRegExp.matchRecursive
: Add support for matching with unbalanced delimiters (newunbalanced
option with supported values'error'
[default],'skip'
, and'skip-lazy'
): #960f52a62
v5.0.2
Compare Source
XRegExp.matchChain
: #325XRegExp.escape
to handle-
,,
, and#
in a way that is compatible with ES6 flagu
: #323v5.0.1
Compare Source
docs
folder with extensive documentation.v5.0.0
Compare Source
Breaking Changes
namespacing
feature by default for alignment with ES2018 (moves named capture properties to thegroups
object of matches and to the last argument of replacement callbacks): https://github.com/slevithan/xregexp/pull/316Improvements
Script=
' prefix (from ES2018 syntax) for Unicode script tokens: https://github.com/slevithan/xregexp/issues/225XRegExp.matchRecursive
: Add delimiter and position info to error when unbalanced delimiters are found: https://github.com/slevithan/xregexp/issues/293(?:)
into native regex source in more cases: slevithan/xregexp@076f950 and slevithan/xregexp@d78a262s
in ES2018 environments: slevithan/xregexp@98abea8Bug Fixes
XRegExp.exec
: Preserve thegroups
object that comes from native ES2018 named capture: slevithan/xregexp@c4a83e7XRegExp.exec
: Set thegroups
property toundefined
if there are no named captures: https://github.com/slevithan/xregexp/issues/320XRegExp.escape
: Escape whitespace in a way that works with ES6 flagu
: https://github.com/slevithan/xregexp/issues/197XRegExp.replace
: Throw when using native named capture and a numbered backreference one higher than the number of captures in the replacement text: https://github.com/slevithan/xregexp/issues/317XRegExp.replace
: Fix edge case issues with replacement text syntax: https://github.com/slevithan/xregexp/issues/318v4.4.1
Compare Source
v4.4.0
Compare Source
v4.3.0
Compare Source
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.