Content deleted Content added
[6f254cc0] cci: fix CSRSB |
[5ad0992a] CCI fixes |
||
Line 1,508:
/**
* Wikitext for checking if a given row is a contribution survey row.
* $1 - Page name
* $2 - Post-page name text (`(3 edits)`)
* $3 - ID of first revision
* $4 - Comments
*/
ContributionSurveyRow.rowWikitextRegex = /\*?(?:'''.''' )?\[\[:?(.+?)]](?: ?([^{:]*) ?(?:: ?)?)?(?:(?:\[\[Special:Diff\/(\d+)\|.+?]])+|(.+$))/gm;
/**
* A set of regular expressions that will match a specific contribution survey row
Line 2,867 ⟶ 2,869:
*/
sendStatusResponse(event) {
var _a, _b, _c, _d, _e;
if (event.data.page === this.row.title.getPrefixedText() ||
(
this.revisions.some((r) => r.revision.revid === event.data.revision)) {▼
// `this.revisions` may be undefined. If so, don't reply.
▲ (_a = this.revisions) === null || _a === void 0 ? void 0 : _a.some((r) => r.revision.revid === event.data.revision))) {
window.deputy.comms.reply(event.data, {
type: 'pageStatusResponse',
Line 2,877 ⟶ 2,881:
status: this.status,
enabledStatuses: this.statusDropdown.getEnabledOptions(),
revisionStatus: event.data.revision ? (
nextRevision: (
});
}
Line 3,252 ⟶ 3,256:
final.push(obj);
}
else if (obj.modified) {
final.push(obj.wikitext);
}
else {
final.push(obj.originalWikitext);
}
}
|