Skip to content

Commit

Permalink
[docs-infra] Make select components with two capital letters (#42004)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette committed May 13, 2024
1 parent 77ea7fe commit 23cc0dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api-docs-builder/utils/findComponents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import fs from 'fs';
import path from 'path';
import findIndexFile from './findIndexFile';

const componentRegex = /^(Unstable_)?([A-Z][a-z]+)+2?\.(js|tsx)/;
const componentRegex = /^(Unstable_)?([A-Z][a-z]*)+2?\.(js|tsx)/;

/**
* Returns the component source in a flat array.
Expand Down

0 comments on commit 23cc0dd

Please sign in to comment.