static SS ctxLoadRegexpMacros(S botID) { new SS out; File f = loadLibrary(botID); L names = endingWithIC("/cm.pattern", listFilesInZip(f)); for (S name : names) { L lines = toLinesFullTrim(loadTextFileFromZip(f, name)); for i, S s over lines: { int idx = s.indexOf("="); if (idx >= 0) out.put(trimSubstring(s, 0, idx), trimSubstring(s, idx+1)); } } ret out; }