DocSettings (again) (#11020)

Cleaning and optimizing Docsettings code.
This commit is contained in:
hius07
2023-10-31 07:30:39 +02:00
committed by GitHub
parent 873503369c
commit b70f866656
9 changed files with 431 additions and 489 deletions

View File

@@ -149,7 +149,7 @@ function CreDocument:init()
self.flows = {}
self.page_in_flow = {}
local file_type = string.lower(string.match(self.file, ".+%.([^.]+)"))
local file_type = string.lower(string.match(self.file, ".+%.([^.]+)") or "")
if file_type == "zip" then
-- NuPogodi, 20.05.12: read the content of zip-file
-- and return extention of the 1st file