mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-24 14:28:06 -05:00
@@ -54,7 +54,7 @@ module Jekyll
|
|||||||
end
|
end
|
||||||
|
|
||||||
def validate_file_name(file)
|
def validate_file_name(file)
|
||||||
if file =~ INVALID_SEQUENCES || file !~ VALID_FILENAME_CHARS
|
if file.match?(INVALID_SEQUENCES) || !file.match?(VALID_FILENAME_CHARS)
|
||||||
raise ArgumentError, <<~MSG
|
raise ArgumentError, <<~MSG
|
||||||
Invalid syntax for include tag. File contains invalid characters or sequences:
|
Invalid syntax for include tag. File contains invalid characters or sequences:
|
||||||
|
|
||||||
@@ -90,7 +90,7 @@ module Jekyll
|
|||||||
|
|
||||||
# Render the variable if required
|
# Render the variable if required
|
||||||
def render_variable(context)
|
def render_variable(context)
|
||||||
Liquid::Template.parse(@file).render(context) if @file =~ VARIABLE_SYNTAX
|
Liquid::Template.parse(@file).render(context) if @file.match?(VARIABLE_SYNTAX)
|
||||||
end
|
end
|
||||||
|
|
||||||
def tag_includes_dirs(context)
|
def tag_includes_dirs(context)
|
||||||
|
|||||||
Reference in New Issue
Block a user