You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 25, 2022. It is now read-only.
As a suggestion to improve ergonomics of @@replace calls with a callable replaceValue: passing namedCaptures to replaceValue as the second argument would allow a generic
function replacer(match, groups) {
// Use captures from the groups object.
}
to handle RegExp's with varying capture counts.
This would be an improvement over the current state where one needs to either adapt the replacer signature for different capture counts, or use the arguments object.