Explorar o código

codestyle, let's use readable variable names

Co-authored-by: rugk <rugk+git@posteo.de>
El RIDO %!s(int64=2) %!d(string=hai) anos
pai
achega
c3331070cb
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      js/privatebin.js

+ 2 - 2
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;
                     }