Feature summary (what you would like to be able to do and where):
Sometimes image captions end with . while they should almost never do that. This may be worthy of an edit check.
Description
Description
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Open | None | T265163 Create a system to encode best practices into editing experiences | |||
| Open | None | T327959 Create ways for volunteers to audit, configure, and evaluate Edit Check | |||
| Open | None | T360799 [EPIC] Empower developers to author new Edit Checks and Suggestions and configure existing ones | |||
| Open | Feature | None | T428559 [Suggestion] Check if image caption ends with "." |
Event Timeline
Comment Actions
One approach would be to use the likely outcome of T422431, which intends to add the ability to scope a check to only apply within a given node type. In this case it'd be fairly easy to make a textmatch check that checks for \.$ only within mwCaption nodes.
Comment Actions
Okay, given T422431's resolution, the following TextMatch rule works:
"caption-fullstop": { "query": "\\.$", "mode": "delete", "isRegExp": true, "title": "Caption full stop", "message": "Image captions shouldn't end with a full stop", "inNode": "mwImageCaption" },
