Skip to content

Capture(RegExp) does not update .matches nor .named #684

@ilyash-b

Description

@ilyash-b
$ ngs -pi '"abc" =~ Capture(/a/)'
(root) - MatchSuccess with 3 key/value pair(s)
.matches - Arr of size 0
.pattern - Capture with 3 key/value pair(s)
.pattern.pattern = <RegExp>
.pattern.name = <Null null>
.pattern.dflt = <Null null>
.named - Hash with 0 key/value pair(s)
$ ngs -pi '"abc" =~ Capture("A", /a/)'
(root) - MatchSuccess with 3 key/value pair(s)
.matches - Arr of size 0
.pattern - Capture with 3 key/value pair(s)
.pattern.name = String of length 1: A
.pattern.pattern = <RegExp>
.pattern.dflt = <Null null>
.named - Hash with 0 key/value pair(s)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions