mirror of https://github.com/espruino/BangleApps
minor regex tweaks
parent
8acffd521d
commit
69e344fbc5
|
@ -140,7 +140,7 @@ exports.load = function() {
|
||||||
// note: code below is included in clkinfocache by bootupdate.js
|
// note: code below is included in clkinfocache by bootupdate.js
|
||||||
// we use clkinfocache if it exists as it's faster
|
// we use clkinfocache if it exists as it's faster
|
||||||
eval(clkInfoCache);
|
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
|
// 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.
|
// object a, we append the items. Otherwise we add the new object a to the list.
|
||||||
try{
|
try{
|
||||||
|
|
|
@ -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.
|
//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);
|
console.log("Found files:", f, rows[1].func);
|
||||||
for (let file of f){
|
for (let file of f){
|
||||||
let query = `require("Storage").read('${file}').includes('${rows[1].func}')`;
|
let query = `require("Storage").read('${file}').includes('${rows[1].func}')`;
|
||||||
|
|
Loading…
Reference in New Issue