Skip to content

Commit

Permalink
Merge pull request #58 from shayneo/2.2.0
Browse files Browse the repository at this point in the history
2.2.0
  • Loading branch information
shayneo authored Dec 9, 2019
2 parents 5cfce8e + d591447 commit 393cd1c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ Most of the props line up with Fuse.js `options` with the defaults set to match
<td>Boolean</td>
<td>false</td>
</tr>
<tr>
<td>tokenSeparator</td>
<td>Regex used to separate words when searching. Only applicable when `tokenize` is `true`.</td>
<td>Regex</td>
<td>`RegExp(' ')`</td>
</tr>
<tr>
<td>matchAllTokens</td>
<td>When true, the result set will only include records that match all tokens. Will only work if tokenize is also true.</td>
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-fuse",
"version": "2.1.2",
"version": "2.2.0",
"description": "A Vue.js pluggin for fuzzy search library, Fuse.js",
"author": "Shayne O'Sullivan <[email protected]>",
"license": "MIT",
Expand Down Expand Up @@ -28,7 +28,7 @@
"lint": "vue-cli-service lint"
},
"dependencies": {
"fuse.js": "^3.4.5"
"fuse.js": "^3.4.6"
},
"peerDependencies": {
"vue": "^2.6.10"
Expand Down
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
placeholder="Search Books of the Bible"
event-name="results"
:list="books"
:keys="['name']"
:keys="['name', 'description']"
class="w-64 text-center h-8 border rounded-lg center"
/>
<button
Expand Down
2 changes: 1 addition & 1 deletion src/components/VueFuse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default {
},
tokenSeparator: {
type: RegExp,
default: RegExp(" ")
default: RegExp(' ')
},
matchAllTokens: {
type: Boolean,
Expand Down

0 comments on commit 393cd1c

Please sign in to comment.