Skip to content

Commit

Permalink
chore: fix update script
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Mar 8, 2024
1 parent af2ccf9 commit f66e086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/update-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const ROOT = path.resolve(__dirname, '../docs/rules');
function pickSince(content: string): string | null | Promise<string> {
const fileIntro = /^---\n((?:.*\n)+)---\n*/.exec(content);
if (fileIntro) {
const since = /since: ["']?(v\d+\.\d+\.\d+)["']?/.exec(fileIntro[1]);
const since = /since: ["']?(v\d+\.\d+\.\d+(?:-[\w.]+)?)["']?/.exec(fileIntro[1]);
if (since) {
return since[1];
}
Expand Down

0 comments on commit f66e086

Please sign in to comment.