We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9c695f commit 9153e43Copy full SHA for 9153e43
lib/jekyll-gist/gist_tag.rb
@@ -99,7 +99,7 @@ def code_from_api(gist_id, filename = nil)
99
# .files is a hash of :"filename.extension" => data pairs
100
# Rather than using to_sym on arbitrary user input,
101
# Find our file by calling to_s on the keys
102
- match = gist.files.find { |name, data| name.to_s == filename}
+ match = gist.files.find { |name, data| name.to_s == filename }
103
match[1] if match
104
end
105
0 commit comments