nit: escape mapping is many-to-one
Closed this issue · 1 comments
bennetyee commented
Line 39 in fc4da26
i noticed that this file is deleted in the PR that addresses the security review changes, so this is probably not relevant, just informative.
i'm not sure why we wanted/needed escape mapping, but the mapping is many-to-one and thus potentially confusing, i.e., "\n" and "\n" both map to "\n". since it's a logger the data being logged is probably not adversarial in nature and trying to maximize confusion, so this is just an ultra small nit. doing a .replace("\", "\\") before the "\n" and "\n" processing would make this one-to-one.
nhynes commented