diff options
Diffstat (limited to 'src/electron/ipc-api/download.js')
-rw-r--r-- | src/electron/ipc-api/download.js | 2 |
1 files changed, 1 insertions, 1 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'); |