docs: fix changelog parse logic (#44068)

This commit is contained in:
二货爱吃白萝卜 2023-08-07 11:31:28 +08:00 committed by GitHub
parent 6c706908fc
commit 4e32093adc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ const camelComponentNames = componentNames.map((componentName) =>
);
function fillComponentKey(componentName: string): RegExp[] {
return [new RegExp(`\\b${componentName}\\b`)];
return [new RegExp(`(?<!\\.)\\b${componentName}\\b`)];
}
// Convert a mapping logic