-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
Reported by Asilvering in Discord
Steps to reproduce
- Put this wikitext on a user talk page
{{unblock|1='''Hello, Wikipedia'''.
<br>
I was blocked a few days ago for making disruptive edits. I self admit, I am a sock, and used an LLM. I feel that I fully understand why I was blocked (for making disruptive edits) and appreciate the consequences in the hope I can get another chance to do better. I hope that I will be forgiven within the community, and attempt to make more productive edits.
<br>
🇳🇿 <span style="font-family:'Courier New', monospace;">[[User:RFKTNG|R. F. K. T. N. G.]]</span> ([[User talk:RFKTNG|talk]]) 🇳🇿 00:38, 5 December 2025 (UTC)}}
- Decline it
What happens?
*''' is deleted
What should happen instead?
*''' is not deleted
Acceptance criteria
- UnblockReview can handle reasons that start with
'''(bold formatting)
Test case
test( `Handle reason starting with '''`, () => {
const wikitext =
`{{unblock|1='''Hello, Wikipedia'''.
<br>
I was blocked a few days ago for... [[User:Test]]}}`;
const paramsAndReason = `Hello, Wikipedia`;
const acceptDeclineReason = `Please use your other account.`;
const acceptOrDecline = `decline`;
const expected =
`{{unblock reviewed|decline=Please use your other account. ~~~~|1='''Hello, Wikipedia'''.
<br>
I was blocked a few days ago for... [[User:Test]]}}`;
expect( unblockReview.processAcceptOrDecline( wikitext, paramsAndReason, acceptDeclineReason, DEFAULT_DECLINE_REASON, acceptOrDecline ) ).toBe( expected );
} );