Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ckirby/longest-common-substring

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckirby/longest-common-substring - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

9

index.js

@@ -36,5 +36,10 @@ const { memoizingStemmer: stemmer } = require('porter-stemmer');

function findCommonPhrases(str1 = ``, str2 = ``, options = {}) {
let { threshold = 3, trimOverlaps = false } = options;
let tk1 = tokenizer(str1, options);
let tk2 = tokenizer(str2, options);
return findCommonTokens(tk1, tk2, options);
}
function findCommonTokens(tk1, tk2, options) {
let { threshold = 3, trimOverlaps = false } = options;
let vocabulary = makeVocabulary(tk1);

@@ -158,2 +163,2 @@

module.exports = { findCommonSubstrings, findCommonPhrases, stem };
module.exports = { findCommonSubstrings, findCommonPhrases, findCommonTokens, stem };
{
"name": "@ckirby/longest-common-substring",
"version": "1.2.0",
"version": "1.3.0",
"description": "find the longest string that is a substring of two strings",

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

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