Skip to content

Commit 2c5b009

Browse files
fix: refer to allowlist as allowlist (#123)
1 parent 4c9ad8f commit 2c5b009

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/__tests__/markdown-helpers.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ describe('markdown-helpers', () => {
4444
]);
4545
});
4646

47-
it('should throw an error if there is a tag not on the whitelist', () => {
47+
it('should throw an error if there is a tag not on the allowlist', () => {
4848
expect(() => parseHeadingTags(' _Awesome_')).toThrowErrorMatchingInlineSnapshot(
49-
`"heading tags must be from the whitelist: ["macOS","mas","Windows","Linux","Experimental","Deprecated","Readonly"]: expected [ 'macOS', 'mas', 'Windows', …(4) ] to include 'Awesome'"`,
49+
`"heading tags must be from the allowlist: ["macOS","mas","Windows","Linux","Experimental","Deprecated","Readonly"]: expected [ 'macOS', 'mas', 'Windows', …(4) ] to include 'Awesome'"`,
5050
);
5151
});
5252
});

src/markdown-helpers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const parseHeadingTags = (tags: string | null): DocumentationTag[] => {
3030
while ((match = matcher.exec(tags))) {
3131
expect(ALLOWED_TAGS).to.contain(
3232
match[1],
33-
`heading tags must be from the whitelist: ${JSON.stringify(ALLOWED_TAGS)}`,
33+
`heading tags must be from the allowlist: ${JSON.stringify(ALLOWED_TAGS)}`,
3434
);
3535
parsedTags.push(match[1] as keyof typeof tagMap);
3636
}

0 commit comments

Comments
 (0)