Skip to content

Commit 62bb173

Browse files
committed
use regex to be more forgiving in matching yaml, yml, etc.
1 parent 10b13a8 commit 62bb173

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/content/lint-files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ describe('lint markdown content', () => {
269269

270270
yamlScheduledWorkflows = []
271271
visit(ast, 'code', node => {
272-
if (node.lang === 'yaml' && node.value.includes('schedule') && node.value.includes('cron')) {
272+
if (/ya?ml/.test(node.lang) && node.value.includes('schedule') && node.value.includes('cron')) {
273273
yamlScheduledWorkflows.push(node.value)
274274
}
275275
})

0 commit comments

Comments
 (0)