summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorChris Akritidis <43294513+cakrit@users.noreply.github.com>2019-02-08 12:24:16 +0100
committerGitHub <noreply@github.com>2019-02-08 12:24:16 +0100
commit2ecc0ab663a9a69ae1c836dea1e38aeba003350b (patch)
tree6f18ca2d889e9309e3e190456d2bea6d0c09e133 /web
parentf4464b4709def76cb2dd8fcb08cb04d1c4ce15e9 (diff)
Fix replacement of whitespace for versions retrieved from github (#5355)
Diffstat (limited to 'web')
-rw-r--r--web/gui/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/gui/main.js b/web/gui/main.js
index b6478f6cf2..a370a330e9 100644
--- a/web/gui/main.js
+++ b/web/gui/main.js
@@ -2847,7 +2847,7 @@ function getGithubLatestVersion(callback) {
cache: false
})
.done(function (data) {
- data = atob(data.content.replace(/(\r\n|\n|\r| |\t)/gm, ""));
+ data = atob(data.content).replace(/(\r\n|\n|\r| |\t)/gm, "");
versionLog('Latest version from github is ' + data);
callback(data);
})