Skip to content

Commit

Permalink
Merge branch 'noprint' into lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bhsd-harry committed Jan 11, 2025
2 parents 7a9a126 + cff637d commit 416fead
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wikilint",
"version": "2.14.0",
"version": "2.14.1",
"description": "A Node.js linter for MediaWiki markup",
"keywords": [
"mediawiki",
Expand Down
2 changes: 1 addition & 1 deletion src/transclude.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export abstract class TranscludeToken extends Token {
const templateLike = this.isTemplate();
let i = 1;
for (const [j, part] of parts.entries()) {
if (!templateLike && !(this.name === 'switch' && j > 0)) {
if (!(templateLike || this.name === 'switch' && j > 0 || this.name === 'tag' && j > 1)) {
part[0] = part.join('=');
part.length = 1;
}
Expand Down

0 comments on commit 416fead

Please sign in to comment.