Adding lookbehind assertion
This commit is contained in:
@@ -22,6 +22,12 @@ describe('parser/javascript/subexp.js', function() {
|
||||
'(?!test)': {
|
||||
regexp: jasmine.objectContaining({ textValue: 'test' })
|
||||
},
|
||||
'(?<=test)': {
|
||||
regexp: jasmine.objectContaining({ textValue: 'test' })
|
||||
},
|
||||
'(?<!test)': {
|
||||
regexp: jasmine.objectContaining({ textValue: 'test' })
|
||||
},
|
||||
'(?:test)': {
|
||||
regexp: jasmine.objectContaining({ textValue: 'test' }),
|
||||
proxy: jasmine.objectContaining({ textValue: 'test' })
|
||||
@@ -110,6 +116,14 @@ describe('parser/javascript/subexp.js', function() {
|
||||
label: 'negative lookahead',
|
||||
groupCounter: 1
|
||||
},
|
||||
'(?<=test)': {
|
||||
label: 'positive lookbehind',
|
||||
groupCounter: 1
|
||||
},
|
||||
'(?<!test)': {
|
||||
label: 'negative lookbehind',
|
||||
groupCounter: 1
|
||||
},
|
||||
'(?:test)': {
|
||||
label: '',
|
||||
groupCounter: 1
|
||||
|
||||
Reference in New Issue
Block a user