Skip to content

Commit

Permalink
Also split search terms at “-” & “_”
Browse files Browse the repository at this point in the history
Like we do when building the search string in `build-data.js`
  • Loading branch information
EtienneLem committed Oct 14, 2016
1 parent 44f9914 commit 996c46c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/emoji-index.js
Expand Up @@ -24,7 +24,7 @@ function search(value, maxResults = 75) {
var results = null

if (value.length) {
var values = value.toLowerCase().split(/[\s|,]+/),
var values = value.toLowerCase().split(/[\s|,|\-|_]+/),
allResults = []

if (values.length > 2) {
Expand Down

0 comments on commit 996c46c

Please sign in to comment.