Socket
Socket
Sign inDemoInstall

jest-regex-util

Package Overview
Dependencies
0
Maintainers
5
Versions
106
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 23.0.0 to 23.3.0

8

build/index.js

@@ -23,3 +23,4 @@ 'use strict';

return replacePathSepForRegex(escapeStrForRegex(dir));
}); /**
});
/**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.

@@ -38,5 +39,8 @@ *

if (_path2.default.sep === '\\') {
return string.replace(/(\/|\\(?![[\]{}()*+?.^$|]))/g, '\\\\');
return string.replace(
/(\/|(.)?\\(?![[\]{}()*+?.^$|\\]))/g,
(_match, p1, p2) => (p2 && p2 !== '\\' ? p2 + '\\\\' : '\\\\')
);
}
return string;
});
{
"name": "jest-regex-util",
"version": "23.0.0",
"version": "23.3.0",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc