@featurevisor/site 1.7.1 → 1.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintcache +1 -1
- package/CHANGELOG.md +11 -0
- package/LICENSE +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/utils/index.ts +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@featurevisor/site",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.1",
|
|
4
4
|
"description": "Static site for Featurevisor",
|
|
5
5
|
"main": "dist",
|
|
6
6
|
"scripts": {
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@featurevisor/types": "^1.3.0"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "5a1572d908a0aa9fcdcb5fe208cee8c0f17f7b4f"
|
|
69
69
|
}
|
package/src/utils/index.ts
CHANGED
|
@@ -129,7 +129,10 @@ export function getFeaturesByQuery(query: Query, data: SearchIndex) {
|
|
|
129
129
|
.filter((feature) => {
|
|
130
130
|
let matched = true;
|
|
131
131
|
|
|
132
|
-
if (
|
|
132
|
+
if (
|
|
133
|
+
query.keyword.length > 0 &&
|
|
134
|
+
feature.key.toLowerCase().indexOf(query.keyword.toLowerCase()) === -1
|
|
135
|
+
) {
|
|
133
136
|
matched = false;
|
|
134
137
|
}
|
|
135
138
|
|