User:PleaseStand/segregate-refs-dev.js: Difference between revisions

Content deleted Content added
start cleanup, primarily of backend code
m scanner.slice is not a function
Line 334:
// Replace the short code with the long code
outWikiText += scannerargWikiText.slice( offset, scanner.refScanRegex.lastIndex - ref.length );
outWikiText += refLong;
offset = scanner.refScanRegex.lastIndex;
Line 343:
}
}
 
outWikiText += argWikiText.slice( offset );
 
return {
wikiText: scanner.wikiTextoutWikiText,
unusedRefs: refCodes
};