🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

issue-parser

Package Overview
Dependencies
Maintainers
4
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

issue-parser - npm Package Compare versions

Comparing version
7.0.1
to
7.0.2
+7
-4
index.js

@@ -15,2 +15,3 @@ const escapeRegExp = require('lodash.escaperegexp');

const HTML_CODE_BLOCK_REGEXP = /(<code)+?((?!(<code|<\/code>)+?)[\S\s])*(<\/code>)+?/gim;
const HTML_COMMENT_REGEXP = /<!--[\s\S]*?-->/g;
const LEADING_TRAILING_SLASH_REGEXP = /^\/?([^/]+(?:\/[^/]+)*)\/?$/;

@@ -80,9 +81,11 @@ const TRAILING_SLASH_REGEXP = /\/?$/;

};
let noCodeBlock = inverse(inverse(text.replace(FENCE_BLOCK_REGEXP, '')).replace(CODE_BLOCK_REGEXP, ''));
let filteredText = inverse(inverse(text.replace(FENCE_BLOCK_REGEXP, '')).replace(CODE_BLOCK_REGEXP, ''));
while (regexp.test(noCodeBlock)) {
noCodeBlock = noCodeBlock.replace(HTML_CODE_BLOCK_REGEXP, '');
while (regexp.test(filteredText)) {
filteredText = filteredText.replace(HTML_CODE_BLOCK_REGEXP, '');
}
while ((parsed = regexp.exec(noCodeBlock)) !== null) {
filteredText = filteredText.replace(HTML_COMMENT_REGEXP, ' ');
while ((parsed = regexp.exec(filteredText)) !== null) {
let [raw, action, slug, prefix, issue, mentions] = parsed;

@@ -89,0 +92,0 @@ prefix =

{
"name": "issue-parser",
"description": "Parser for Github, GitLab and Bitbucket issues actions, references and mentions",
"version": "7.0.1",
"version": "7.0.2",
"author": "Pierre Vanduynslager (https://github.com/pvdlg)",

@@ -22,9 +22,8 @@ "ava": {

"devDependencies": {
"ava": "6.1.3",
"codecov": "3.8.3",
"lockfile-lint": "4.13.2",
"ls-engines": "0.9.1",
"npm-run-all2": "6.2.0",
"nyc": "15.1.0",
"publint": "0.2.8",
"ava": "6.4.1",
"lockfile-lint": "5.0.0",
"ls-engines": "0.9.4",
"npm-run-all2": "8.0.4",
"nyc": "18.0.0",
"publint": "0.3.18",
"xo": "0.28.3"

@@ -89,3 +88,2 @@ },

"scripts": {
"codecov": "codecov -f coverage/coverage-final.json",
"test": "npm-run-all --print-label --parallel lint:* --parallel test:*",

@@ -92,0 +90,0 @@ "test:unit": "nyc ava -v",