diff --git a/_plugins/hideCustomBibtex.rb b/_plugins/hideCustomBibtex.rb index 4a852fde6a6e..bead3db9808f 100644 --- a/_plugins/hideCustomBibtex.rb +++ b/_plugins/hideCustomBibtex.rb @@ -4,7 +4,7 @@ def hideCustomBibtex(input) keywords = @context.registers[:site].config['filtered_bibtex_keywords'] keywords.each do |keyword| - input = input.gsub(/^.*#{keyword}.*$\n/, '') + input = input.gsub(/^\s*#{keyword}.*$\n/, '') end return input