mirror of
https://github.com/jekyll/jekyll.git
synced 2026-02-19 02:44:29 -05:00
Fix code to allow dots in variables
This commit is contained in:
@@ -76,7 +76,7 @@ eos
|
||||
end
|
||||
|
||||
def retrieve_variable(context)
|
||||
if /\{\{([\w\-]+)\}\}/ =~ @file
|
||||
if /\{\{([\w\-\.]+)\}\}/ =~ @file
|
||||
raise ArgumentError.new("No variable #{$1} was found in include tag") if context[$1].nil?
|
||||
@file = context[$1]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user