Skip to content

Commit 6662e02

Browse files
committed
let, not const and one more regex tweak
1 parent 7e859ba commit 6662e02

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/content/lint-files.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const oldOcticonRegex = /{{\s*?octicon-([a-z-]+)(\s[\w\s\d-]+)?\s*?}}/g
9292
// - {{ #warning }}
9393
// - {{ /pizza }}
9494
//
95-
const oldExtendedMarkdownRegex = /{{\s*?[#/][a-z-]+\s*}}/g
95+
const oldExtendedMarkdownRegex = /{{\s*?[#/][a-z-]+\s*?}}/g
9696

9797
const relativeArticleLinkErrorText = 'Found unexpected relative article links:'
9898
const languageLinkErrorText = 'Found article links with hard-coded language codes:'
@@ -124,7 +124,7 @@ describe('lint-files', () => {
124124
let content
125125

126126
beforeAll(async () => {
127-
const content = await fs.promises.readFile(markdownAbsPath, 'utf8')
127+
content = await fs.promises.readFile(markdownAbsPath, 'utf8')
128128
})
129129

130130
test('relative URLs must start with "/"', async () => {

0 commit comments

Comments
 (0)