blob: 52cd7f2bb9f6952678421b613efacfea945a140d (
plain) (
blame)
1
2
3
4
5
6
|
/**
@example 'Something done (#123)' => 'Something done'
*/
export default function cleanPrCommitTitle(commitTitle: string, pr: number): string {
return commitTitle.replace(new RegExp(`\\(#${pr}\\)\\s*$`), '').trim();
}
|