diff --git a/apps/clock_info/lib.js b/apps/clock_info/lib.js index 1134749c2..0e20ab855 100644 --- a/apps/clock_info/lib.js +++ b/apps/clock_info/lib.js @@ -140,7 +140,7 @@ exports.load = function() { // note: code below is included in clkinfocache by bootupdate.js // we use clkinfocache if it exists as it's faster eval(clkInfoCache); - } else require("Storage").list(/clkinfo.js$/).forEach(fn => { + } else require("Storage").list(/clkinfo\.js$/).forEach(fn => { // In case there exists already a menu object b with the same name as the next // object a, we append the items. Otherwise we add the new object a to the list. try{ diff --git a/apps/powermanager/interface.html b/apps/powermanager/interface.html index 51c31cc81..450ad4f26 100644 --- a/apps/powermanager/interface.html +++ b/apps/powermanager/interface.html @@ -148,7 +148,7 @@ function viewDeferredTable(filename) { //try finding possible sources for the given function, currently does not work because function.toString() not being identical to code in the *.js files. - /*Puck.eval(`require("Storage").list(/.*.js$/)`, (f)=>{ + /*Puck.eval(`require("Storage").list(/.*\.js$/)`, (f)=>{ console.log("Found files:", f, rows[1].func); for (let file of f){ let query = `require("Storage").read('${file}').includes('${rows[1].func}')`;