Socket
Socket
Sign inDemoInstall

oniguruma

Package Overview
Dependencies
Maintainers
7
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oniguruma - npm Package Compare versions

Comparing version 7.0.1 to 7.0.2

2

package.json

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc