fix(logging): Fix query logging: escape '%' properly

This commit is contained in:
Juan Tejada 2016-09-19 12:49:05 -07:00
parent 190e2713ce
commit fd8aab0946

View file

@ -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")