Comparing version 7.0.1 to 7.0.2
@@ -5,3 +5,3 @@ { | ||
"description": "oniguruma regular expression library", | ||
"version": "7.0.1", | ||
"version": "7.0.2", | ||
"licenses": [ | ||
@@ -8,0 +8,0 @@ { |
'use strict' | ||
const OnigScanner = require('..').OnigScanner | ||
const OnigString = require('..').OnigString; | ||
@@ -116,2 +117,14 @@ describe('OnigScanner', () => { | ||
describe('when a regular expression contains \\G', () => | ||
it('it does not get cached', () => { | ||
let str = new OnigString('first-and-second'); | ||
let scanner = new OnigScanner(['\\G-and']) | ||
let match = scanner.findNextMatchSync(str, 0) | ||
expect(match).toEqual(null) | ||
match = scanner.findNextMatchSync(str, 5) | ||
expect(match.captureIndices).toEqual([{index: 0, start: 5, end: 9, length: 4}]) | ||
}) | ||
) | ||
describe('::findNextMatch', () => { | ||
@@ -118,0 +131,0 @@ let matchCallback |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2746809
438