User:Theleekycauldron/Scripts/PSHAW/dependencies/Nomination.js: Difference between revisions
Content deleted Content added
mm |
frontloading credits processing, which seems like a waste of time but what the heck |
||
Line 53:
console.log(this.content)
let credits = this.content.match(/\* \{\{DYK(make|nom).*?\}\}/g);
if (credits
credits =
for (let c=0; c<credits.length; c++){▼
credits[c] = new Credit(credits[c]);▼
}▼
}
let hooktext = this.content.match(/('''ALT.+?)?(\.\.\..*?)(?:{{-\?}}|\?)/g);
Line 74 ⟶ 69:
u++;
}
▲ for (let c=0; c<credits.length; c++){
▲ }
this.hooks.push(hook);
}
}
|