pull/1033/head
Mikunj 5 years ago
parent b38c666e95
commit 828444aadc

@ -35,7 +35,6 @@ const validatePassword = (phrase, i18n) => {
return null; return null;
}; };
module.exports = { module.exports = {
generateHash, generateHash,
matchesHash, matchesHash,

@ -45,7 +45,7 @@ exports.upload = async content => {
const { status } = result; const { status } = result;
if (status !== 204) { if (status !== 204) {
throw new Error(`Failed to upload to S3, got status ${status}`) throw new Error(`Failed to upload to S3, got status ${status}`);
} }
return `${BASE_URL}/${fields.key}`; return `${BASE_URL}/${fields.key}`;

@ -7,7 +7,7 @@ const { compose } = require('lodash/fp');
const { escapeRegExp } = require('lodash'); const { escapeRegExp } = require('lodash');
const APP_ROOT_PATH = path.join(__dirname, '..', '..', '..'); const APP_ROOT_PATH = path.join(__dirname, '..', '..', '..');
const SESSION_ID_PATTERN = /\b(05[0-9a-f]{64})\b/gi const SESSION_ID_PATTERN = /\b(05[0-9a-f]{64})\b/gi;
const GROUP_ID_PATTERN = /(group\()([^)]+)(\))/g; const GROUP_ID_PATTERN = /(group\()([^)]+)(\))/g;
const REDACTION_PLACEHOLDER = '[REDACTED]'; const REDACTION_PLACEHOLDER = '[REDACTED]';
@ -62,7 +62,7 @@ exports.redactSessionID = text => {
} }
return text.replace(SESSION_ID_PATTERN, REDACTION_PLACEHOLDER); return text.replace(SESSION_ID_PATTERN, REDACTION_PLACEHOLDER);
} };
// redactGroupIds :: String -> String // redactGroupIds :: String -> String
exports.redactGroupIds = text => { exports.redactGroupIds = text => {

@ -612,7 +612,6 @@ function showAbout() {
let debugLogWindow; let debugLogWindow;
async function showDebugLogWindow() { async function showDebugLogWindow() {
if (debugLogWindow) { if (debugLogWindow) {
debugLogWindow.show(); debugLogWindow.show();
return; return;

@ -1670,7 +1670,6 @@ body.dark-theme {
// _options // _options
// _progress // _progress
// Not sure we need to change anything there - it's blue // Not sure we need to change anything there - it's blue

Loading…
Cancel
Save