diff --git a/README.md b/README.md index 4e39e7c..b96cfa0 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ WiFi box OpenWRT firmware package ================================= -General documentation can be found on the wiki: . Source code documentation can be generated, see below. +General documentation can be found on the wiki: . Source code documentation can be generated, see below. Documentation ------------- diff --git a/src/rest/api/api_sketch.lua b/src/rest/api/api_sketch.lua index 19725cc..b4ee73b 100644 --- a/src/rest/api/api_sketch.lua +++ b/src/rest/api/api_sketch.lua @@ -43,7 +43,7 @@ local function createSketchList() for item in lfs.dir(M.SKETCH_DIR) do if item ~= '.' and item ~= '..' then - local idx = item:match('^(%d+)\.sketch$') + local idx = item:match('^(%d+)\.'..SKETCH_FILE_EXTENSION..'$') if idx and idx:len() == NUMBER_PAD_WIDTH then table.insert(result, tonumber(idx)) end