fix: liquid filter of percent form broken (#21)

This commit is contained in:
jeffreytse 2020-07-31 21:10:46 +08:00
parent c59b4e67f5
commit c98006df64

View File

@ -160,7 +160,7 @@ module Jekyll::Spaceship
elsif type == :math elsif type == :math
regex = /(((?<!\\)\${1,2})[^\n]*?\1)/ regex = /(((?<!\\)\${1,2})[^\n]*?\1)/
elsif type == :liquid_filter elsif type == :liquid_filter
regex = /((?<!\\)\{\{[^\n]*?\}\})/ regex = /((?<!\\)((\{\{[^\n]*?\}\})|(\{%[^\n]*?%\})))/
end end
next if regex.nil? next if regex.nil?
content.scan(regex) do |match_data| content.scan(regex) do |match_data|