Skip to content

Commit 393cd1c

Browse files
authored
Merge pull request #58 from shayneo/2.2.0
2.2.0
2 parents 5cfce8e + d591447 commit 393cd1c

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ Most of the props line up with Fuse.js `options` with the defaults set to match
111111
<td>Boolean</td>
112112
<td>false</td>
113113
</tr>
114+
<tr>
115+
<td>tokenSeparator</td>
116+
<td>Regex used to separate words when searching. Only applicable when `tokenize` is `true`.</td>
117+
<td>Regex</td>
118+
<td>`RegExp(' ')`</td>
119+
</tr>
114120
<tr>
115121
<td>matchAllTokens</td>
116122
<td>When true, the result set will only include records that match all tokens. Will only work if tokenize is also true.</td>

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-fuse",
3-
"version": "2.1.2",
3+
"version": "2.2.0",
44
"description": "A Vue.js pluggin for fuzzy search library, Fuse.js",
55
"author": "Shayne O'Sullivan <shayneosull@gmail.com>",
66
"license": "MIT",
@@ -28,7 +28,7 @@
2828
"lint": "vue-cli-service lint"
2929
},
3030
"dependencies": {
31-
"fuse.js": "^3.4.5"
31+
"fuse.js": "^3.4.6"
3232
},
3333
"peerDependencies": {
3434
"vue": "^2.6.10"

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
placeholder="Search Books of the Bible"
1616
event-name="results"
1717
:list="books"
18-
:keys="['name']"
18+
:keys="['name', 'description']"
1919
class="w-64 text-center h-8 border rounded-lg center"
2020
/>
2121
<button

src/components/VueFuse.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default {
5454
},
5555
tokenSeparator: {
5656
type: RegExp,
57-
default: RegExp(" ")
57+
default: RegExp(' ')
5858
},
5959
matchAllTokens: {
6060
type: Boolean,

0 commit comments

Comments
 (0)