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

imdone-core

Package Overview
Dependencies
Maintainers
1
Versions
478
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imdone-core - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

12

lib/file.js

@@ -18,2 +18,3 @@ var _ = require("lodash"),

var CODE_BLOCK_REGEX = /`{3}[\s\S]*?`{3}/gm;
var INLINE_CODE_REGEX = /`[\s\S]*?`/g;
var CODE_STYLE_PATTERN = "\\s*)([A-Z]{2,}):?(\\d+?\\.?\\d*?)?\\s+(.*)$";

@@ -237,2 +238,6 @@ var HASH_STYLE_REGEX = /#([\w\-]+?):(\d+?\.?\d*?)\s+(.*)/g;

function replacer(block) {
block = block.replace(new RegExp(LINK_STYLE_REGEX), "**TASK**");
block = block.replace(new RegExp(HASH_STYLE_REGEX), "**TASK**");
}
/**

@@ -246,7 +251,4 @@ * Description

if (this.isMarkDownFile()) {
var regEx = new RegExp(CODE_BLOCK_REGEX);
cleanContent = this.content.replace(regEx, function(block) {
block = block.replace(new RegExp(LINK_STYLE_REGEX), "**TASK**");
block = block.replace(new RegExp(HASH_STYLE_REGEX), "**TASK**");
});
cleanContent = this.content.replace(new RegExp(CODE_BLOCK_REGEX), replacer)
.replace(new RegExp(INLINE_CODE_REGEX), replacer);
}

@@ -253,0 +255,0 @@ return cleanContent;

{
"name": "imdone-core",
"version": "0.1.1",
"version": "0.1.2",
"description": "imdone-core",

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

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