Commit ea0ef2ea authored by CompileNix's avatar CompileNix

Update Index.js

parent bca14ba9
......@@ -94,12 +94,13 @@ async function sendMail(mailOptions) {
// sort by expression.matchCounter DESC
function optimizeExpressionCollectionOrder() {
config.expressions.sort((first, seconds) => {
if (first.matchCounter > seconds.matchCounter) return -1;
if (first.matchCounter < seconds.matchCounter) return 1;
console.log('sort expressions by most used');
config.expressions.sort((first, second) => {
if (first.matchCounter > second.matchCounter) return -1;
if (first.matchCounter < second.matchCounter) return 1;
return 0;
});
if (config.debug) console.log(config.expressions);
console.log(config.expressions);
}
async function filterLog( /** @type {string} */ line) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment