We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af2ccf9 commit f66e086Copy full SHA for f66e086
tools/update-docs.ts
@@ -24,7 +24,7 @@ const ROOT = path.resolve(__dirname, '../docs/rules');
24
function pickSince(content: string): string | null | Promise<string> {
25
const fileIntro = /^---\n((?:.*\n)+)---\n*/.exec(content);
26
if (fileIntro) {
27
- const since = /since: ["']?(v\d+\.\d+\.\d+)["']?/.exec(fileIntro[1]);
+ const since = /since: ["']?(v\d+\.\d+\.\d+(?:-[\w.]+)?)["']?/.exec(fileIntro[1]);
28
if (since) {
29
return since[1];
30
}
0 commit comments