diff options
-rw-r--r-- | src/electron/ipc-api/download.js | 2 | ||||
-rw-r--r-- | src/helpers/i18n-helpers.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/electron/ipc-api/download.js b/src/electron/ipc-api/download.js index 399ca6117..9e504834d 100644 --- a/src/electron/ipc-api/download.js +++ b/src/electron/ipc-api/download.js | |||
@@ -6,7 +6,7 @@ import fs from 'fs-extra'; | |||
6 | const debug = require('debug')('Franz:ipcApi:download'); | 6 | const debug = require('debug')('Franz:ipcApi:download'); |
7 | 7 | ||
8 | function decodeBase64Image(dataString) { | 8 | function decodeBase64Image(dataString) { |
9 | const matches = dataString.match(/^data:([A-Za-z-+\/]+);base64,(.+)$/); | 9 | const matches = dataString.match(/^data:([A-Za-z-+/]+);base64,(.+)$/); |
10 | 10 | ||
11 | if (matches.length !== 3) { | 11 | if (matches.length !== 3) { |
12 | return new Error('Invalid input string'); | 12 | return new Error('Invalid input string'); |
diff --git a/src/helpers/i18n-helpers.js b/src/helpers/i18n-helpers.js index afd28cab4..00a2061c1 100644 --- a/src/helpers/i18n-helpers.js +++ b/src/helpers/i18n-helpers.js | |||
@@ -12,7 +12,7 @@ export function getLocale({ locale, locales, defaultLocale, fallbackLocale }) { | |||
12 | 12 | ||
13 | if (localeFuzzy !== undefined) { | 13 | if (localeFuzzy !== undefined) { |
14 | localeStr = localeFuzzy; | 14 | localeStr = localeFuzzy; |
15 | } | 15 | } |
16 | } | 16 | } |
17 | 17 | ||
18 | if (locales[localeStr] === undefined) { | 18 | if (locales[localeStr] === undefined) { |