Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Flemmli97 committed Feb 15, 2025
1 parent 22e73ab commit bac6e11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/java-edition/src/mcdocAttributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function registerMcdocAttributes(
mcdoc.runtime.registerAttribute(meta, 'except', validator.string, {
filterElement: (config, ctx) => {
const range = config.split("-")
if (range.length !== 2 || !range[0].startsWith('1.')|| !range[1].startsWith('1.')) {
if (range.length !== 2 || !range[0].startsWith('1.') || !range[1].startsWith('1.')) {
ctx.logger.warn(`Invalid mcdoc attribute for "except": ${config}`)
return true
}
Expand Down

0 comments on commit bac6e11

Please sign in to comment.