Skip to content

Commit

Permalink
cci: fix mw-tag classes for revs
Browse files Browse the repository at this point in the history
  • Loading branch information
ChlodAlejandro committed Sep 10, 2023
1 parent 07a010c commit 97bb369
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ui/root/DeputyContributionSurveyRevision.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,11 @@ export default class DeputyContributionSurveyRevision

// Be wary of the spaces between tags.
return <div
class={ ( this.revision.tags ?? [] ).map( ( v ) => 'mw-tag-' + v ).join( ' ' ) }
class={ ( this.revision.tags ?? [] ).map(
( v ) => 'mw-tag-' + v
.replace( /[^A-Z0-9-]/gi, '' )
.replace( /\s/g, '_' )
).join( ' ' ) }
>
{unwrapWidget( this.completedCheckbox )}
<ChangesListLinks
Expand Down

0 comments on commit 97bb369

Please sign in to comment.