mirror of
https://github.com/remarkjs/remark-lint.git
synced 2024-09-11 19:57:15 +03:00
Fix typo in definition-case warning
Closes GH-22.
This commit is contained in:
parent
c7743c7eb2
commit
490ac160ee
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
2
mdast-lint.min.js
vendored
2
mdast-lint.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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', []);
|
||||
|
Loading…
Reference in New Issue
Block a user