We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8853818 commit d6f5452Copy full SHA for d6f5452
rules/license.js
@@ -6,7 +6,7 @@ const toString = require('mdast-util-to-string');
6
module.exports = rule('remark-lint:awesome-license', (ast, file) => {
7
const license = find(ast, node => (
8
node.type === 'heading' &&
9
- (toString(node) === 'Licence' || toString(node) === 'License')
+ (toString(node).toLowerCase() === 'licence' || toString(node).toLowerCase() === 'license')
10
));
11
12
if (license) {
0 commit comments