@ckirby/longest-common-substring
Advanced tools
Comparing version 1.3.0 to 1.4.0
11
index.js
@@ -39,3 +39,7 @@ const { memoizingStemmer: stemmer } = require('porter-stemmer'); | ||
return findCommonTokens(tk1, tk2, options); | ||
let sequences = findCommonTokens(tk1, tk2, options); | ||
return [ | ||
makeOutput(sequences, tk1, `offset1`), | ||
makeOutput(sequences, tk2, `offset2`) | ||
]; | ||
} | ||
@@ -57,6 +61,3 @@ | ||
return [ | ||
makeOutput(sequences, tk1, `offset1`), | ||
makeOutput(sequences, tk2, `offset2`) | ||
]; | ||
return sequences; | ||
} | ||
@@ -63,0 +64,0 @@ |
{ | ||
"name": "@ckirby/longest-common-substring", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "find the longest string that is a substring of two strings", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5706
140