User:Theleekycauldron/Scripts/PSHAW/dependencies/Hook.js: Difference between revisions
Content deleted Content added
update regex; if this is the error, why hasn't it been quietly causing damage before? |
capitalize article titles |
||
Line 19:
this.articles = []
for (let m of this.content.matchAll(/'''[^']*?\[\[([^\]\|]+)[^\]]*\]\][^']*?'''|\[\[.*'''([^']+)'''\]\]/g)){
this.articles.push(m[1].capitalize())
}
this.credits = credits
|