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 Aug 7, 2024
2 parents 996ae33 + e8c0dce commit 361944f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -417,15 +417,17 @@ export class Token extends AstElement {
}
}
for (const [key, value] of Object.entries(record)) {
if (value.size > 1) {
if (value.size > 1 && !key.startsWith('#mw-customcollapsible-')) {
const isCat = !key.startsWith('#'),
msg = `duplicated ${isCat ? 'category' : 'id'}`;
msg = `duplicated ${isCat ? 'category' : 'id'}`,
severity = isCat ? 'error' : 'warning';
errors.push(...[...value].map(cat => {
const e = generateForSelf(
cat,
{start: cat.getAbsoluteIndex()},
'no-duplicate',
msg,
severity,
);
if (isCat) {
e.suggestions = [
Expand Down

0 comments on commit 361944f

Please sign in to comment.