Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
Due to a typo, it failed to load files which had a BOM.
  • Loading branch information
ignacio committed Feb 12, 2016
1 parent 39a3731 commit d8bb3c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/orbit/pages.lua
Expand Up @@ -37,7 +37,7 @@ function load(filename, contents)
end
contents = file:read("*a")
file:close()
if contents:sub(1,3) == BOM then contents = contens:sub(4) end
if contents:sub(1,3) == BOM then contents = contents:sub(4) end
end
template = cosmo.compile(remove_shebang(contents))
template_cache[filename] = template
Expand Down

0 comments on commit d8bb3c1

Please sign in to comment.