diff --git a/_plugins/hideCustomBibtex.rb b/_plugins/hideCustomBibtex.rb index 4a852fde6a6e..ac12ab0f3c5c 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(/^.*\b#{keyword}\b *= *\{.*$\n/, '') end return input