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
Our URI regex combined both named and numbered capture groups, for example:
(?<scheme>([^:\/?#]+):)
Defines a named capture group 'scheme' with an inner capture group:
([^:\/?#]+)
Ruby ignores numbered capture groups when they are mixed with named capture
groups[1], so explicitly mark the inner ones as non-capturing using '?:'
(?:[^:\/?#]+)
This change was made to scheme, query and fragment.
[1] https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/MixedRegexpCaptureTypes
0 commit comments