Skip to content

Commit

Permalink
Fix typo in definition-case warning
Browse files Browse the repository at this point in the history
Closes GH-22.
  • Loading branch information
wooorm committed Aug 5, 2015
1 parent c7743c7 commit 490ac16
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/rules/definition-case.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function definitionCase(ast, file, preferred, done) {
label = contents.slice(start, end).match(LABEL)[1];

if (label !== label.toLowerCase()) {
file.warn('Do not use uppper-case characters in definition labels', node);
file.warn('Do not use upper-case characters in definition labels', node);
}
}

Expand Down
2 changes: 1 addition & 1 deletion mdast-lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ function definitionCase(ast, file, preferred, done) {
label = contents.slice(start, end).match(LABEL)[1];

if (label !== label.toLowerCase()) {
file.warn('Do not use uppper-case characters in definition labels', node);
file.warn('Do not use upper-case characters in definition labels', node);
}
}

Expand Down
2 changes: 1 addition & 1 deletion mdast-lint.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ describe('Rules', function () {
describeRule('definition-case', function () {
describeSetting(true, function () {
assertFile('definition-case-invalid.md', [
'definition-case-invalid.md:3:1-3:59: Do not use uppper-case characters in definition labels'
'definition-case-invalid.md:3:1-3:59: Do not use upper-case characters in definition labels'
]);

assertFile('definition-case-valid.md', []);
Expand Down

0 comments on commit 490ac16

Please sign in to comment.