From c3331070cb1c83328e49b68f443a6abf27d3ce62 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Fri, 5 Jan 2024 06:28:19 +0100 Subject: [PATCH] codestyle, let's use readable variable names Co-authored-by: rugk --- js/privatebin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/privatebin.js b/js/privatebin.js index 930a1315..b10f2d0d 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -2118,9 +2118,9 @@ jQuery.PrivateBin = (function($, RawDeflate) { } if (typeof response === 'string' && response.length > 0) { const shortUrlMatcher = /https?:\/\/[^\s]+/g; - const shortUrl = (response.match(shortUrlMatcher) || []).filter(function(a) { + const shortUrl = (response.match(shortUrlMatcher) || []).filter(function(urlRegExMatch) { try { - return !!new URL(a); + return !!new URL(urlRegExMatch); } catch (error) { return false; }