Skip to content

Commit f66e086

Browse files
committed
chore: fix update script
1 parent af2ccf9 commit f66e086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/update-docs.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const ROOT = path.resolve(__dirname, '../docs/rules');
2424
function pickSince(content: string): string | null | Promise<string> {
2525
const fileIntro = /^---\n((?:.*\n)+)---\n*/.exec(content);
2626
if (fileIntro) {
27-
const since = /since: ["']?(v\d+\.\d+\.\d+)["']?/.exec(fileIntro[1]);
27+
const since = /since: ["']?(v\d+\.\d+\.\d+(?:-[\w.]+)?)["']?/.exec(fileIntro[1]);
2828
if (since) {
2929
return since[1];
3030
}

0 commit comments

Comments
 (0)