Adding named group capture
This commit is contained in:
@@ -13,6 +13,9 @@ describe('parser/javascript/subexp.js', function() {
|
||||
'(test)': {
|
||||
regexp: jasmine.objectContaining({ textValue: 'test' })
|
||||
},
|
||||
'(?<name>test)': {
|
||||
regexp: jasmine.objectContaining({ textValue: 'test' })
|
||||
},
|
||||
'(?=test)': {
|
||||
regexp: jasmine.objectContaining({ textValue: 'test' })
|
||||
},
|
||||
@@ -95,6 +98,10 @@ describe('parser/javascript/subexp.js', function() {
|
||||
label: 'group #1',
|
||||
groupCounter: 2
|
||||
},
|
||||
'(?<name>test)': {
|
||||
label: 'group \'name\'',
|
||||
groupCounter: 1
|
||||
},
|
||||
'(?=test)': {
|
||||
label: 'positive lookahead',
|
||||
groupCounter: 1
|
||||
|
||||
Reference in New Issue
Block a user