Update formatting; convert tabs to 4x spaces
I believe this is the accepted method and should increase default editor compatibility
This commit is contained in:
parent
b9ae3b5b26
commit
9c1252cfd8
|
@ -77,7 +77,7 @@ module.exports = class FeedData extends Core.BaseEmbeddedData {
|
|||
return `\`\`\`JavaScript\n ${JSON.stringify(this, (k, v) => !blacklist.find(x => x === k) ? v : undefined, "\t")} \`\`\``;
|
||||
}
|
||||
|
||||
_isCached(url){
|
||||
_isCached(url) {
|
||||
return this.cachedLinks.indexOf(normaliseUrlForCache(url)) > -1;
|
||||
}
|
||||
|
||||
|
@ -134,6 +134,6 @@ function normaliseYouTubeUrl(origUrl, parsedUrl) {
|
|||
return `http://youtu.be/${videoID}`
|
||||
}
|
||||
|
||||
function normaliseUrlForCache(url){
|
||||
function normaliseUrlForCache(url) {
|
||||
return normaliseUrlForDiscord(url).replace(/^((https?:\/\/)?(www.)?)/, "");
|
||||
}
|
Loading…
Reference in a new issue