djkrose / 7DTD-ScriptingMod

Adds scripting support and other useful functionality to 7 Days To Die dedicated server
19 stars 10 forks source link

Lua require() fails when the required script is UTF-8 w/ BOM encoded #23

Open djkrose opened 7 years ago

djkrose commented 7 years ago

Using this command in a Lua script fails if inspect.js is encoded with UTF-8 with BOM.

local inspect = require('inspect')