mirror of
https://github.com/koreader/koreader.git
synced 2025-12-24 12:14:05 +01:00
@@ -722,7 +722,7 @@ end
|
||||
--- Companion helper function that returns the script's language,
|
||||
--- based on the filme extension.
|
||||
---- @string filename
|
||||
---- @treturn string (lowercase) (or nil if !isAllowedScript)
|
||||
---- @treturn string (lowercase) (or nil if not Device:canExecuteScript(file))
|
||||
function util.getScriptType(file)
|
||||
local file_ext = string.lower(util.getFileNameSuffix(file))
|
||||
if file_ext == "sh" then
|
||||
|
||||
Reference in New Issue
Block a user