From fd8aab0946b8c57515353c6d21ed2d21aca0ef25 Mon Sep 17 00:00:00 2001 From: Juan Tejada Date: Mon, 19 Sep 2016 12:49:05 -0700 Subject: [PATCH] fix(logging): Fix query logging: escape '%' properly --- src/flux/stores/database-store.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/src/flux/stores/database-store.coffee b/src/flux/stores/database-store.coffee index 15e9cd8fd..7e3d3bacd 100644 --- a/src/flux/stores/database-store.coffee +++ b/src/flux/stores/database-store.coffee @@ -230,6 +230,7 @@ class DatabaseStore extends NylasStore app.rebuildDatabase() _prettyConsoleLog: (q) => + q = q.replace(/%/g, '%%') q = "color:black |||%c " + q q = q.replace(/`(\w+)`/g, "||| color:purple |||%c$&||| color:black |||%c")