Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit a0adb4a

Browse files
committed
making the search options more flexible
1 parent 552126f commit a0adb4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/styleguide/js/pattern-finder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ var patternFinder = {
2626

2727
// instantiate the bloodhound suggestion engine
2828
var patterns = new Bloodhound({
29-
datumTokenizer: function(d) { return Bloodhound.tokenizers.whitespace(d.patternPartial); },
30-
queryTokenizer: Bloodhound.tokenizers.whitespace,
29+
datumTokenizer: function(d) { return Bloodhound.tokenizers.nonword(d.patternPartial); },
30+
queryTokenizer: Bloodhound.tokenizers.nonword,
3131
limit: 10,
3232
local: this.data
3333
});

0 commit comments

Comments
 (0)