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:
benji7425 2018-01-26 23:47:23 +00:00
parent b9ae3b5b26
commit 9c1252cfd8
9 changed files with 233 additions and 233 deletions

View file

@ -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.)?)/, "");
}