Rubocop: Style/SpaceInsideRangeLiteral
- Space inside range literal
This commit is contained in:
parent
6711234d5f
commit
04e635b10c
|
@ -113,7 +113,7 @@ module Jekyll
|
||||||
# Returns the cleaned relative path of the document.
|
# Returns the cleaned relative path of the document.
|
||||||
def cleaned_relative_path
|
def cleaned_relative_path
|
||||||
@cleaned_relative_path ||=
|
@cleaned_relative_path ||=
|
||||||
relative_path[0 .. -extname.length - 1].sub(collection.relative_directory, "")
|
relative_path[0..-extname.length - 1].sub(collection.relative_directory, "")
|
||||||
end
|
end
|
||||||
|
|
||||||
# Determine whether the document is a YAML file.
|
# Determine whether the document is a YAML file.
|
||||||
|
|
|
@ -106,7 +106,7 @@ module Jekyll
|
||||||
# Returns nothing.
|
# Returns nothing.
|
||||||
def process(name)
|
def process(name)
|
||||||
self.ext = File.extname(name)
|
self.ext = File.extname(name)
|
||||||
self.basename = name[0 .. -ext.length - 1]
|
self.basename = name[0..-ext.length - 1]
|
||||||
end
|
end
|
||||||
|
|
||||||
# Add any necessary layouts to this post
|
# Add any necessary layouts to this post
|
||||||
|
|
Loading…
Reference in New Issue