Socket
Socket
Sign inDemoInstall

ignore

Package Overview
Dependencies
0
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.1.5 to 5.1.6

13

index.js

@@ -9,2 +9,3 @@ // A simple implementation of make-array

const EMPTY = ''
const SPACE = ' '
const ESCAPE = '\\'

@@ -45,6 +46,6 @@ const REGEX_TEST_BLANK_LINE = /^\s+$/

// See fixtures #59
const cleanRangeBackSlash = slashes => slashes.slice(
0,
parseInt(slashes.length / 2, 10) * 2
)
const cleanRangeBackSlash = slashes => {
const {length} = slashes
return slashes.slice(0, length - length % 2)
}

@@ -71,3 +72,3 @@ // > If the pattern ends with a slash,

match => match.indexOf('\\') === 0
? ' '
? SPACE
: EMPTY

@@ -79,3 +80,3 @@ ],

/\\\s/g,
() => ' '
() => SPACE
],

@@ -82,0 +83,0 @@

@@ -15,2 +15,3 @@ "use strict";

var EMPTY = '';
var SPACE = ' ';
var ESCAPE = '\\';

@@ -51,3 +52,4 @@ var REGEX_TEST_BLANK_LINE = /^\s+$/;

var cleanRangeBackSlash = function cleanRangeBackSlash(slashes) {
return slashes.slice(0, parseInt(slashes.length / 2, 10) * 2);
var length = slashes.length;
return slashes.slice(0, length - length % 2);
}; // > If the pattern ends with a slash,

@@ -70,6 +72,6 @@ // > it is removed for the purpose of the following description,

/\\?\s+$/, function (match) {
return match.indexOf('\\') === 0 ? ' ' : EMPTY;
return match.indexOf('\\') === 0 ? SPACE : EMPTY;
}], // replace (\ ) with ' '
[/\\\s/g, function () {
return ' ';
return SPACE;
}], // Escape metacharacters

@@ -76,0 +78,0 @@ // which is written down by users but means special for regular expressions.

{
"name": "ignore",
"version": "5.1.5",
"version": "5.1.6",
"description": "Ignore is a manager and filter for .gitignore rules, the one used by eslint, gitbook and many others.",

@@ -5,0 +5,0 @@ "files": [

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