Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Oct 25, 2023
1 parent 6ece1a0 commit 1ae4fcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actions/update-draft-pr/src/rename.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const renamePattern = (originalFilePath: string, content: string) => {
};

function updateContentDate(newContent: string) {
const datePattern = /^date\s?:\s(\d{4}-\d{2}-\d{2}.*)$/;
const datePattern = /date\s?:\s(\d{4}-\d{2}-\d{2}.*)/;
if (!datePattern.test(newContent)) {
return newContent;
}
Expand Down

0 comments on commit 1ae4fcc

Please sign in to comment.