From 1ff201292ba40031c4a34c02c3dff0473f22bc66 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Wed, 2 Jan 2019 23:56:16 -0500 Subject: [PATCH] Fix some linter errors in dashboard.js --- resources/assets/js/dashboard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/dashboard.js b/resources/assets/js/dashboard.js index 77704e2..5c48fa0 100644 --- a/resources/assets/js/dashboard.js +++ b/resources/assets/js/dashboard.js @@ -635,7 +635,7 @@ function editItemInit() { url: "/dashboard/update", data: formData }).always(function(response) { - if (/^id:[0-9][0-9]*$/.test(response)) { + if ((/^id:[0-9][0-9]*$/).test(response)) { uploadImage(response.replace(/^id:/, ""), 0); } else { loadingModal("hide"); @@ -687,7 +687,7 @@ function userProfileImageInit() { }).always(function(response) { loadingModal("hide"); - if (/\.png\?version=/.test(response)) { + if ((/\.png\?version=/).test(response)) { $display.css({ backgroundImage: `url(${response})` }); $delete.removeClass("inactive"); submitting = false;