@nexucis/fuzzy
Advanced tools
@@ -187,2 +187,5 @@ "use strict"; | ||
| render(text, intervals, conf) { | ||
| if (intervals.length == 0) { | ||
| return text; | ||
| } | ||
| let rendered = ''; | ||
@@ -201,3 +204,3 @@ const pre = (conf === null || conf === void 0 ? void 0 : conf.pre) ? conf.pre : this.conf.pre; | ||
| } | ||
| // check if the last interval contains the end of the string. Otherwise add it | ||
| // check if the last interval contains the end of the string. Otherwise, add it | ||
| const lastInterval = intervals[intervals.length - 1]; | ||
@@ -204,0 +207,0 @@ if (lastInterval.to < text.length - 1) { |
+4
-1
@@ -183,2 +183,5 @@ // MIT License | ||
| render(text, intervals, conf) { | ||
| if (intervals.length == 0) { | ||
| return text; | ||
| } | ||
| let rendered = ''; | ||
@@ -197,3 +200,3 @@ const pre = (conf === null || conf === void 0 ? void 0 : conf.pre) ? conf.pre : this.conf.pre; | ||
| } | ||
| // check if the last interval contains the end of the string. Otherwise add it | ||
| // check if the last interval contains the end of the string. Otherwise, add it | ||
| const lastInterval = intervals[intervals.length - 1]; | ||
@@ -200,0 +203,0 @@ if (lastInterval.to < text.length - 1) { |
+1
-1
| { | ||
| "name": "@nexucis/fuzzy", | ||
| "version": "0.4.0", | ||
| "version": "0.4.1", | ||
| "description": "small, standalone fuzzy search / fuzzy filter. browser or node", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.js", |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
27863
0.53%487
1.25%0
-100%