codestyle, let's use readable variable names
Co-authored-by: rugk <rugk+git@posteo.de>
This commit is contained in:
parent
cc0b6e387a
commit
c3331070cb
1 changed files with 2 additions and 2 deletions
|
@ -2118,9 +2118,9 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
||||||
}
|
}
|
||||||
if (typeof response === 'string' && response.length > 0) {
|
if (typeof response === 'string' && response.length > 0) {
|
||||||
const shortUrlMatcher = /https?:\/\/[^\s]+/g;
|
const shortUrlMatcher = /https?:\/\/[^\s]+/g;
|
||||||
const shortUrl = (response.match(shortUrlMatcher) || []).filter(function(a) {
|
const shortUrl = (response.match(shortUrlMatcher) || []).filter(function(urlRegExMatch) {
|
||||||
try {
|
try {
|
||||||
return !!new URL(a);
|
return !!new URL(urlRegExMatch);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue