Fix regex to limit keyword scope to fields (#1629)
improved version of the original fix contributed by @paberr in #1429
This commit is contained in:
parent
482f4366bb
commit
53ad434ad2
|
|
@ -4,7 +4,7 @@
|
||||||
keywords = @context.registers[:site].config['filtered_bibtex_keywords']
|
keywords = @context.registers[:site].config['filtered_bibtex_keywords']
|
||||||
|
|
||||||
keywords.each do |keyword|
|
keywords.each do |keyword|
|
||||||
input = input.gsub(/^.*#{keyword}.*$\n/, '')
|
input = input.gsub(/^.*\b#{keyword}\b *= *\{.*$\n/, '')
|
||||||
end
|
end
|
||||||
|
|
||||||
return input
|
return input
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue