Skip to content

Commit 2cf6543

Browse files
committed
Adapt copyright regex to support single and range of years
1 parent b334d9b commit 2cf6543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/copyright-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const COPYRIGHT_TEXT = `/**
4242
*/`;
4343

4444
// Regular expression to match the copyright notice
45-
const COPYRIGHT_REGEX = /\/\*\*\n \* Copyright 2025(?:-(?:20\d{2}))? Arm Limited[\s\S]*?\*\//;
45+
const COPYRIGHT_REGEX = /\/\*\*\n \* Copyright 20\d{2}(?:-(?:20\d{2}))? Arm Limited[\s\S]*?\*\//;
4646

4747

4848
function getFiles(): string[] {

0 commit comments

Comments
 (0)