Skip to content

Commit

Permalink
Merge pull request #3 from alphagov/replace-tokenizer-separator
Browse files Browse the repository at this point in the history
Check the tokenizer separator for nil values
  • Loading branch information
lewisnyman authored Aug 1, 2018
2 parents 31def14 + 789beee commit f9d262d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleman-search/search-index-resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def build_index
source << "this.pipeline.add(lunr.Pipeline.registeredFunctions.#{name});"
end

if @tokenizer_separator
if @tokenizer_separator.nil?
source << "this.tokenizerFn.seperator = #{@tokenizer_separator}"
end

Expand Down

0 comments on commit f9d262d

Please sign in to comment.