From 789beee913d9ddc42a668c56728041788a8ccc88 Mon Sep 17 00:00:00 2001 From: lewisnyman Date: Wed, 1 Aug 2018 12:19:37 +0100 Subject: [PATCH] Check the tokenizer separator for nil values --- lib/middleman-search/search-index-resource.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/middleman-search/search-index-resource.rb b/lib/middleman-search/search-index-resource.rb index 01d76e3..757a875 100644 --- a/lib/middleman-search/search-index-resource.rb +++ b/lib/middleman-search/search-index-resource.rb @@ -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