New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

concat-regexp

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

concat-regexp - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

8

index.js

@@ -13,2 +13,3 @@ var slice = Array.prototype.slice

var last = pieces.length - 1
var loner = last === i

@@ -24,2 +25,9 @@ for (; i <= last; i++) {

// Don’t strip the boundaries of
// lone regular expressions
if (loner && boundary.test(piece)) {
regexp += piece
continue
}
// Add sanitised piece

@@ -26,0 +34,0 @@ if (i < last) {

2

package.json
{
"name": "concat-regexp",
"version": "0.0.3",
"version": "0.0.4",
"description": "A function that takes a series of regular expressions and returns them in concatenated form.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -37,1 +37,11 @@ var run = require('tape')

})
run('it handles lone regular expressions like RegExp', function(test) {
test.deepEqual(
concat('/a/'),
RegExp('/a/'),
RegExp('/a/').toString()
)
test.end()
})
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