-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redact More Variants Of Paths In Stack Traces #2229
Conversation
7fc2be0
to
e5dbb73
Compare
@scottnonnenberg-signal This is ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, good work putting all of these different escaping mechanisms in place!
js/modules/privacy.js
Outdated
// _redactPath :: Path -> String -> String | ||
exports._redactPath = (filePath) => { | ||
if (!is.string(filePath)) { | ||
throw new TypeError('"filePath" must be a string'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'll be good to make that eslint change so we can move to "'filePath' must be a string"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coming up in another PR.
e5dbb73
to
432a6eb
Compare
@scottnonnenberg-signal Thanks for review! Ended up adding |
Looks good. Not sure if typescript would like this, but it would be nice to have some helpers where we pass in the type we want, and the variable, and it would take care of doing the throw if needed. Lots of boilerplate today. |
Good idea! I wrote a module in the past called |
Receive quoted replies (#2244) iOS theme: one bubble for both attachment and message contents (#2244) Improve URL Auto-Linking In Messages (#2240) Redact More Variants Of Paths In Stack Traces (#2229) Fixed: Conversation message preview would sometimes continue to show after message disappeared (1206b3c) Dev: Introduce React, TypeScript, TSLint and React-StyleGuidist (#2219 and #2232)
is
vs Lodashis*
for type checking.Path
topath
, etc.quotes
rule to allow double quotes to avoid escaping single quotes.'foo' is required
.