Adding sticky and unicode flags

Closes #33
This commit is contained in:
Jeff Avallone
2018-02-10 11:23:56 -05:00
parent 440a2ac22a
commit 988f5ca7d5
3 changed files with 12 additions and 2 deletions
+8
View File
@@ -25,6 +25,14 @@ describe('parser/javascript/root.js', function() {
flags: ['Multiline'],
regexp: jasmine.objectContaining({ textValue: 'test' })
},
'/test/y': {
flags: ['Sticky'],
regexp: jasmine.objectContaining({ textValue: 'test' })
},
'/test/u': {
flags: ['Unicode'],
regexp: jasmine.objectContaining({ textValue: 'test' })
},
'/test/mgi': {
flags: ['Global', 'Ignore Case', 'Multiline'],
regexp: jasmine.objectContaining({ textValue: 'test' })