Skip to content

Commit d6f5452

Browse files
committed
Also handle uppercase
1 parent 8853818 commit d6f5452

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/license.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const toString = require('mdast-util-to-string');
66
module.exports = rule('remark-lint:awesome-license', (ast, file) => {
77
const license = find(ast, node => (
88
node.type === 'heading' &&
9-
(toString(node) === 'Licence' || toString(node) === 'License')
9+
(toString(node).toLowerCase() === 'licence' || toString(node).toLowerCase() === 'license')
1010
));
1111

1212
if (license) {

0 commit comments

Comments
 (0)